r/badcode • • Dec 03 '19

python So many things wrong...

Post image
707 Upvotes

106 comments sorted by

View all comments

3

u/shinydewott Dec 03 '19

But why?

3

u/unfunny_joker Dec 03 '19

Why not tho?

25

u/[deleted] Dec 03 '19

Because you could just:

while true:
   print(‘69’)

2

u/xt1zer Dec 04 '19

I don't know how types values ranges work in python, but if that was C, the code would still make sense, because once an integer reaches its minimal value and then you subtract one, its value will revert to maximum, thus the while loop is finite