You are not logged in.

#1 2017-12-08 04:52:10

hamidoon123
Moderator
Registered: 2017-09-21
Posts: 50,766

What is the output of the following? x = 'abcd'for i in x:prin...

Software Engineering Exams Quizzes MCQs Quizzes Python Online MCQs Test

Question:
What is the output of the following?
x = 'abcd'
for i in x:
print(i.upper())

Option A):
A B C D
Option B):
a b c d
Option C):
error
Option D):
a B C D

Correct Answer is Option A):
A B C D

2017-12-08 04:52:10

Advertisement
Ads By Google

Re: What is the output of the following? x = 'abcd'for i in x:prin...



Board footer