πŸ“Š Python
Q. What will be the output of this code?
Code:
for i in range(3):
    print(i, end=' ')
  • (A) 0 1 2
  • (B) 1 2 3
  • (C) 0 1 2 3
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 0 1 2

Explanation: `range(3)` generates 0, 1, 2.

Explanation by: Mr. Dubey
`range(3)` generates 0, 1, 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
35
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate