You are not logged in.

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

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

What is the output of the following? x = 'abcd'for i in range(x...

Software Engineering Exams Quizzes MCQs Quizzes Python Online MCQs Test

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

Option A):
a b c d
Option B):
error
Option C):
none of the mentioned
Option D):
0 1 2 3

Correct Answer is Option B):
error

2017-12-08 04:52:27

Advertisement
Ads By Google

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



Board footer