Question: What will be printed by the following code: L = [] T = ('A', 'b', 'c': 'd') # 65, 98, 99, 100 are unicode values
What will be printed by the following code: L = [] T = ('A', 'b', 'c': 'd') # 65, 98, 99, 100 are unicode values of 'A', 'b', 'c''d' for x in T: L.append(ord(x)+1) M = 0 for x in L: M.append(chr(x)) print(M) Select one: a. [65, 98, 99, 100] b. ['B', 'c','d', 'e') Oc['A', 'b', 'c','d'] O d. [66, 99, 100, 101)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
