61. What will be the output of the following Python code?
for i in range(0):
print(i)
for i in range(0):
print(i)
62. What will be the output of the following Python code?
x = 'abcd'
for i in range(x):
print(i)
x = 'abcd'
for i in range(x):
print(i)
63. 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())
64. What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
print(x)
x = 'a'
x = 'abcd'
for i in range(len(x)):
print(x)
x = 'a'
65. What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
i.upper()
print (x)
x = 'abcd'
for i in range(len(x)):
i.upper()
print (x)
66. What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
x[i].upper()
print (x)
x = 'abcd'
for i in range(len(x)):
x[i].upper()
print (x)
67. What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
68. What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i.upper())
x = 'abcd'
for i in range(len(x)):
print(i.upper())
69. What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i)
x.upper()
x = 'abcd'
for i in x:
print(i)
x.upper()
70. What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
x = 'a'
print(x)
x = 'abcd'
for i in range(len(x)):
x = 'a'
print(x)