πŸ“Š Python
Q. What will be the output of the following Python code?
Code:
x = 'abcd'
for i in range(len(x)):
    print(i)
  • (A) 1 2 3 4
  • (B) error
  • (C) 0 1 2 3
  • (D) a b c d
πŸ’¬ Discuss
βœ… Correct Answer: (C) 0 1 2 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
168
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Vaibhav Shukla
Publisher
πŸ“ˆ
89%
Success Rate