r/PythonLearning • • Aug 17 '25

What's wrong

Post image
49 Upvotes

45 comments sorted by

View all comments

1

u/FLUFFY-GARAMOND Aug 17 '25

range(n)=1. The loop doesn't make sense.

2

u/AwkwardBet5632 Aug 17 '25

range(n) provides an iterator that goes from 0 to n-1.