41. What is the order of namespaces in which Python looks for an identifier?
42. What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
min(max(False,-3,-4), 2,7)
43. What will be the output of the following Python function?
len(["hello",2, 4, 6])
len(["hello",2, 4, 6])
44. Which of the following is not a core data type in Python programming?
45. Which one of the following is not a keyword in Python language?
46. What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper())
x = 'abcd'
for i in x:
print(i.upper())
47. What will be the output of the following Python code?
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
x = [[0], [1]]
print((' '.join(list(map(str, x))),))
48. What will be the output of the following Python code?
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
def foo():
try:
return 1
finally:
return 2
k = foo()
print(k)
49. To add a new element to a list we use which Python command?
50. The following python program can work with . . . . . . . . parameters.
def f(x):
def f1(*args, **kwargs):
print("Examveda")
return x(*args, **kwargs)
return f1
def f(x):
def f1(*args, **kwargs):
print("Examveda")
return x(*args, **kwargs)
return f1