Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What will be the output of the following Python code snippet?
for i in ”:
print (i)

What will be the output of the following Python code snippet?
for i in ”:
print (i)
a) None
b) nothing is printed
c) error
d) none of the mentioned

Answer: b
Explanation: The string does not have any character to loop over.

Join The Discussion