Report Bug
Qus :

What will be the output of the following Python code?

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

Qus

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

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


A. a b c d e f
B. abcdef
C. i i i i i i …
D. error


Solution
D. error



Explanation
NameError, i is not defined.



Report Bug