r/badcode • • Dec 03 '19

python So many things wrong...

Post image
707 Upvotes

106 comments sorted by

View all comments

Show parent comments

47

u/archpawn Dec 03 '19

But they could have just used

while True:
    print('69')

33

u/kkjdroid Dec 04 '19

But this way, it eventually runs you out of RAM.

4

u/botle Dec 04 '19

Why would it run out of RAM? I'm not too familiar with Python, but in C it wouldn't happen.

6

u/kkjdroid Dec 04 '19

When a number gets too big (or in this case, small) for its container to hold, Python just makes it a bigger container instead of wrapping around like C does.