Q59
What will be the output of the following Python code? a="hello" b=list((x.upper(),len(x)) for x in a) print(b)
A.
[('H', 1), ('E', 1), ('L', 1), ('L', 1), ('O', 1)]
AnswerB.
[('HELLO', 5)]
C.
[('H', 5), ('E', 5), ('L', 5), ('L', 5), ('O', 5)]
D.
Syntax error
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board