131. |
What will be the output of the following Python code?
x = ""abcdef""
i = ""a""
while i in x:
x = x[1:]
print(i, end = "" "")
|
||||||||
Answer:
Option (b) |
132. |
What will be the output of the following Python code?
x = ""abcdef""
i = ""a""
while i in x[1:]:
print(i, end = "" "")
|
||||||||
Answer:
Option (c) |
133. |
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i)
x.upper()
|
||||||||
Answer:
Option (b) |
134. |
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper())
|
||||||||
Answer:
Option (b) |
135. |
What will be the output of the following Python code?
x = 'abcd'
for i in range(x):
print(i)
|
||||||||
Answer:
Option (c) |
136. |
What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i)
|
||||||||
Answer:
Option (b) |
137. |
What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
print(i.upper())
|
||||||||
Answer:
Option (c) |
138. |
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
i.upper()
print (x)
|
||||||||
Answer:
Option (c) |
139. |
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
x[i].upper()
print (x)
|
||||||||
Answer:
Option (a) |
140. |
What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
|
||||||||
Answer:
Option (c) |