What is the output of the following code in Python 3.x environment? >x = “abcdef” >i = “i” >while i in x: print(i, end=””)

Questions & AnswersCategory: PythonWhat is the output of the following code in Python 3.x environment? >x = “abcdef” >i = “i” >while i in x: print(i, end=””)
Geek Boy Staff asked 2 years ago

What is the output of the following code in Python 3.x environment?

>x = "abcdef"
>i = "i"
>while i in x:
    print(i, end="")

a. No Output
b. abcdef
c. a b c d e f
d. Error