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 = " ")A. no output
B. i i i i i i ...
C. a a a a a a ...
D. a b c d e f
Answer: Option B

Join The Discussion