Does Python support multiple inheritance ?
What will be the output of the following Python code snippet?
X = "hi"
print("05d" % X)
min = (lambda x, y: x if x < y else y)
print(min(101*99, 102*98))
What will be the output of the following Python code?
a = {3, 4, 5}
b = {5, 6, 7}
print(a | b)
What will be the output of the following Python code?
The output of the following two Python codes is exactly the same.
object
'a'
CODE 1
>>> pickle.dumps('a', 3)
CODE 2
>>> pickle.dumps(object, 3)
Which of the following functions can help us to find the version of python that we are currently working on?
Guess who am I?
Used when you need some block of code syntactically, but you want to skip its execution. This is basically a null operation. Nothing happens when this is executed.
What will be the output of the following Python code snippet?
z=set('abc')
z.add('san')
z.update(set(['p', 'q']))
z