What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]:
View Question
What will be the output of the following Python code?
for i in range(int(float(‘inf’))):
print (i)
What will be the output of the following Python code? for i in range(int(float('inf'))): ...
View Question
What will be the output of the following Python code?
for i in range(float(‘inf’)):
print (i)
What will be the output of the following Python code? for i in range(float('inf')): ...
View Question
What will be the output of the following Python code?
for i in range(int(2.0)):
print(i)
What will be the output of the following Python code? for i in range(int(2.0)): ...
View Question
What will be the output of the following Python code?
for i in range(2.0):
print(i)
What will be the output of the following Python code? for i in range(2.0): ...
View Question
What will be the output of the following Python code?
x = “abcdef”
i = “a”
while i in x[1:]:
print(i, end = ” “)
What will be the output of the following Python code? x = "abcdef" i = "a" while i ...
View Question
What will be the output of the following Python code?
x = “abcdef”
i = “a”
while i in x:
x = x[1:]
print(i, end = ” “)
What will be the output of the following Python code? x = "abcdef" i = "a" while i ...
View Question
What will be the output of the following Python code?
x = “abcdef”
i = “a”
while i in x[:-1]:
print(i, end = ” “)
What will be the output of the following Python code? x = "abcdef" i = "a" while i ...
View Question
What will be the output of the following Python code?
x = “abcdef”
i = “a”
while i in x:
x = x[:-1]
print(i, end = ” “)
What will be the output of the following Python code? x = "abcdef" i = "a" while i ...
View Question
What will be the output of the following Python code?
x = “abcdef”
i = “a”
while i in x:
print(‘i’, end = ” “)
What will be the output of the following Python code? x = "abcdef" i = "a" while i ...
View Question