Q. Which of the following is correct output of this program?
Code:
1. x = [‘xy’, ‘yz’] 2. for i in a: 3. i.upper() 4. print(a)
β
Correct Answer: (A)
[‘xy’, ‘yz’]
1. x = [‘xy’, ‘yz’] 2. for i in a: 3. i.upper() 4. print(a)
You must be Logged in to update hint/solution