What does the following code prints?
x= None
print(bool(x))
print('{1} and {0}'.format('spam', 'eggs'))
Which method in Python is used for automatic object instantiation?
What is the output of the given code?
def just(x,y=50):
print(x)
print(y)
just(2)
What is the output of the following code?
x = (2345)
type(x)
What is the output of the following Python code?
import math
def func():
a=5
b=-7
c=math.copysign(a,b)
return c
print (func())
What is lambda in Python?
What will be the output of the following code?
def mul(num1):
def multiply(num2):
return num1 * num2
return multiply
m = mul(5)
del mul
print(m(5))