Sail E0 Webinar
Question
What is the output of the following?def to_upper(k):    k.upper()x = ['ab', 'cd']print(list(map(to_upper, x)))
Options:
A .  ['AB', 'CD'].
B .  ['ab', 'cd'].
C .  none of the mentioned
D .  error
Answer: Option C


A list of Nones is printed as to_upper() returns None.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers