[(w.upper(), len(w)) for w in s]
A. Error
B. [‘PUNE’, 4, ‘MUMBAI’, 6, ‘DELHI’, 5]
C. [PUNE, 4, MUMBAI, 6, DELHI, 5]
D. [(‘PUNE’, 4), (‘MUMBAI’, 6), (‘DELHI’, 5)]
Answer:D
[(w.upper(), len(w)) for w in s]
A. Error B. [‘PUNE’, 4, ‘MUMBAI’, 6, ‘DELHI’, 5] C. [PUNE, 4, MUMBAI, 6, DELHI, 5] D. [(‘PUNE’, 4), (‘MUMBAI’, 6), (‘DELHI’, 5)]