What is returned by math.isfinite(float(‘inf’))?
>>> a = 10
>>> b = "Hello world"
>>> print(a + b)
Which of the following is known as a nested-if construct?
The ______ is used for protection against Cross-Site Request Forgeries.
Which of the following returns a string that represents the present working directory?
What will be the output of the following Python code?
names1 = ['Amir', 'Bala', 'Charlie']
names2 = [name.lower() for name in names1]
print(names2[2][0]
In which order are the operators of same precedence evaluated in python interpreter.
Which of the following isn’t true about dictionary keys?
What will be the output of the following Python code?
>>> s={5,6}
>>> s*3
What will be the output of the following Python code?
sentence = 'horses are fast'
regex = re.compile('(?P<animal>\w+) (?P<verb>\w+) (?P<adjective>\w+)')
matched = re.search(regex, sentence)
print(matched.groupdict())