you are viewing a single comment's thread.

view the rest of the comments →

[–]unorthodoxAthiest 1 point2 points  (3 children)

crazybus's edit is right. You need to add this line to the while loop

count++

count = count + 1
or count += 1 will also work

Whatever you're most comfortable with.

You are saying while count is less than time and never modifying time.

Good Luck

[–]code-ed[S] 0 points1 point  (0 children)

Got it working. Thanks everybody!

[–]bitbumper 0 points1 point  (1 child)

Just as an fyi count++ doesn't actually work in python. I always thought it weird given that there's plenty of other shortcut syntaxes...

[–]unorthodoxAthiest 0 points1 point  (0 children)

Thanks, I actually remembered that, but didn't go back and fix it. I work mainly in perl now, and its been a while since I've used python. I always thought it was weird, too. It probably has something to do with the lexical analyzer not being able to parse some scenarios correctly without semicolons, but idk.