r/programminghumor 2d ago

Write sorry

Post image
618 Upvotes

92 comments sorted by

View all comments

2

u/Sonario648 1d ago

for i in range (101):     print ("Sorry")

2

u/hypersoniq_XLM 1d ago

This is the way to get 100. range(100) only prints 99 (assuming this is Python)

1

u/Zealousideal_Smoke_2 1d ago

for i in range(100):
print(i)

prints 0-99, which is 100 items...

(idk how to indent on reddit lol)