adplus-dvertising
frame-decoration

Question

What is the output of the following?
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

Posted under Python

Answer: (c).a a a a a a …

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs