πŸ“Š Python
Q. What will be the output of the following Python code?
Code:
x = ['ab', 'cd']
for i in x:
    x.append(i.upper())
print(x)
  • (A) [‘AB’, ‘CD’]
  • (B) [‘ab’, ‘cd’, ‘AB’, ‘CD’]
  • (C) [‘ab’, ‘cd’]
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (D) none of the mentioned

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
203
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Vaibhav Shukla
Publisher
πŸ“ˆ
92%
Success Rate