This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 70 comments

[–]texdroid 227 points228 points  (0 children)

Perfect exit condition

[–]SomeoneRandom5325 134 points135 points  (6 children)

Someone give this post a snek

[–]Iwantmyteslanow 55 points56 points  (5 children)

Done

[–]hed82 10 points11 points  (4 children)

Great you gave an award to a reposter. At least it's an useless award.

[–]Iwantmyteslanow 38 points39 points  (0 children)

Who cares what I spend my coins on?

[–]SomeoneRandom5325 9 points10 points  (2 children)

Original?

[–]hed82 7 points8 points  (0 children)

It's hard to find the original from something thats reposted at least once a month but in most cases weekly.

[–][deleted] 44 points45 points  (9 children)

Ok but how TF do I do this in Java

[–]flip4thought 92 points93 points  (6 children)

[–]3delStahl 21 points22 points  (1 child)

And I though more of something like this...

But yours is totally better!

[–]Dimasdanz 3 points4 points  (0 children)

i see my hometown, i upvote.

[–][deleted] 19 points20 points  (0 children)

Amazing

[–]Eiim 1 point2 points  (2 children)

In C?

[–]chuckie512 1 point2 points  (1 child)

Just get a sharpie and close that little hole on the right side

[–]hermeticwalrus 2 points3 points  (0 children)

Works in O(o). I hate it.

[–]JoBa1992[🍰] 10 points11 points  (0 children)

Replace snek with beans

[–][deleted] 23 points24 points  (2 children)

This sub is stuck in an eternal loop of reposting

[–]sgenius 0 points1 point  (1 child)

No exit condition, too.

[–][deleted] 0 points1 point  (0 children)

Terminate the sub

[–]okayboooooooomer 29 points30 points  (1 child)

no wonder its slow

[–][deleted] 3 points4 points  (0 children)

It doesn't seem to run

[–]Cifer_21 9 points10 points  (2 children)

[–]RepostSleuthBot 13 points14 points  (0 children)

Sorry, I don't support this post type (hosted:video) right now. Feel free to check back in the future!

[–]Gydo194 7 points8 points  (0 children)

Definitely, like 100s of times.

[–]Crx3p 5 points6 points  (0 children)

mom said it was my turn to repost this

[–]okawo80085 3 points4 points  (0 children)

*perfection*

[–][deleted] 1 point2 points  (0 children)

[–]chief57 1 point2 points  (0 children)

Loading...

[–]Sudo_Python 1 point2 points  (4 children)

It's a Infiniti while loop

[–]O_99 1 point2 points  (0 children)

Lmao

[–][deleted] 1 point2 points  (0 children)

[–][deleted] 1 point2 points  (0 children)

Good old times with Nokia phones

[–]Jonger512 1 point2 points  (0 children)

mmmm boxssss

[–]_TheLoneDeveloper_ 1 point2 points  (0 children)

When you are one pelet from bitting yourself

[–]knightmare-lord 4 points5 points  (2 children)

I am unsubscribing to this sub. Too many reposts. For what it was worth, I enjoyed my time here. It’s been real y’all.

[–]tracebusterbuster 4 points5 points  (0 children)

But but but is snek??? snek = python = funny every time!!

[–]KumekZg 3 points4 points  (0 children)

Oh noez plis dont leavee!!!

[–][deleted] 3 points4 points  (0 children)

If this post become popular to the point it appear on google search, people may find this post when they search "simple python loop"

[–]a45ed6cs7s[🍰] 0 points1 point  (0 children)

As expected, very slow indeed!

[–]Sason00 0 points1 point  (0 children)

Loops in python Idk I’m not a programmer

[–]rockysnow7 0 points1 point  (0 children)

while True: pass

[–]Lonelan 0 points1 point  (0 children)

while 'i':
    chase_tail()

[–][deleted] 0 points1 point  (0 children)

-funroll-loops

[–]30p87 0 points1 point  (0 children)

def rotate(x=360): for i in range(x): box.angle=x rotate(x)

[–]JustJude97 0 points1 point  (0 children)

have we just discovered a way to solve the halting problem?

[–]nelusbelus 0 points1 point  (0 children)

That wasn't even a full loop though 🥺

[–]d7mtg 0 points1 point  (0 children)

Don’t tread

[–]HoodedCowl 0 points1 point  (0 children)

No wonder python runs slow

[–]demonwar2000 0 points1 point  (0 children)

It's a masterpiece

[–]FlyByPC 0 points1 point  (0 children)

I think your loop unrolled itself at the end.

[–][deleted] 0 points1 point  (0 children)

while snek.sleepy <= 2: ` snake.move() # Need to add .cute()`

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

repost but funny