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 ”.join(reversed(list(‘abcd’))):
print (i)

What will be the output of the following Python code snippet?
for i in ”.join(reversed(list(‘abcd’))):
print (i)
a) a b c d
b) d c b a
c) error
d) none of the mentioned

Answer: b
Explanation: ‘ ‘.join(reversed(list(‘abcd’))) reverses a string

Join The Discussion