Question
x = 'abcd'
for i in range(len(x)):
x[i].upper()
print (x)
a.
abcd
b.
ABCD
c.
error
d.
none of the mentioned
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of the following?
Similar Questions
Discover Related MCQs
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...