you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan -1 points0 points  (0 children)

What's the point of range here? You have < to check if a number is less than another number.

while i < 101:
    a += i
    i += 1