81. What will be the output of the following Python code?
x = "abcdef"
i = "a"
while i in x:
print('i', end = " ")
x = "abcdef"
i = "a"
while i in x:
print('i', end = " ")
82. What will be the output of the following Python code?
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
83. What will be the output of the following Python code?
i = 1
while True:
if i%2 == 0:
break
print(i)
i += 2
i = 1
while True:
if i%2 == 0:
break
print(i)
i += 2
84. What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
85. What will be the output of the following Python code?
i = 5
while True:
if i%0O9 == 0:
break
print(i)
i += 1
i = 5
while True:
if i%0O9 == 0:
break
print(i)
i += 1
86. What will be the output of the following Python code?
True = False
while True:
print(True)
break
True = False
while True:
print(True)
break
87. What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
88. What will be the output of the following Python code?
i = 1
while False:
if i%2 == 0:
break
print(i)
i += 2
i = 1
while False:
if i%2 == 0:
break
print(i)
i += 2
89. What will be the output of the following Python code?
i = 5
while True:
if i%0O11 == 0:
break
print(i)
i += 1
i = 5
while True:
if i%0O11 == 0:
break
print(i)
i += 1
90. What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)