41. What will be the output of the following Python code snippet?
for i in '':
print (i)
for i in '':
print (i)
42. What will be the output of the following Python code snippet?
for i in 'abcd'[::-1]:
print (i)
for i in 'abcd'[::-1]:
print (i)
43. What will be the output of the following Python code?
for i in range(2.0):
print(i)
for i in range(2.0):
print(i)
44. What will be the output of the following Python code?
for i in range(int(2.0)):
print(i)
for i in range(int(2.0)):
print(i)
45. What will be the output of the following Python code snippet?
for i in ''.join(reversed(list('abcd'))):
print (i)
for i in ''.join(reversed(list('abcd'))):
print (i)
46. What will be the output of the following Python code snippet?
x = 2
for i in range(x):
x += 1
print (x)
x = 2
for i in range(x):
x += 1
print (x)
47. What will be the output of the following Python code snippet?
for i in [1, 2, 3, 4][::-1]:
print (i)
for i in [1, 2, 3, 4][::-1]:
print (i)
48. What will be the output of the following Python code?
for i in range(float('inf')):
print (i)
for i in range(float('inf')):
print (i)
49. What will be the output of the following Python code?
for i in range(int(float('inf'))):
print (i)
for i in range(int(float('inf'))):
print (i)
50. What will be the output of the following Python code snippet?
x = 2
for i in range(x):
x -= 2
print (x)
x = 2
for i in range(x):
x -= 2
print (x)