Examveda

What will be the output of the following Python code?
x = 'abcd'
for i in range(len(x)):
    print(i)

A. error

B. 1 2 3 4

C. a b c d

D. 0 1 2 3

Answer: Option D


This Question Belongs to Python Program >> Introduction To Python

Join The Discussion

Related Questions on Introduction to Python