R

Ram Sharma • 193.86K Points
Coach

Q. What will be the output of the following code?

Code:
x = "abcd"

for i in range(len(x)):

    print(i)
  • (A) abcd
  • (B) 0 1 2 3
  • (C) 1 2 3 4
  • (D) a b c d
  • Correct Answer - Option(B)
  • Views: 196
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics