Sail E0 Webinar
Question
What is the output of the following?x = 'abcd'for i in x:    print(i.upper())
Options:
A .  a b c d
B .  A B C D
C .  a B C D
D .  error
Answer: Option B


The instance of the string returned by upper() is being printed.



Was this answer helpful ?

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers