Ask coding questions

← Back to all posts
my loop is stuck
ArtyEevee

Hey guys,
In this program, I made an infinite print loop. I would like there to be a way to break out of the loop after a few seconds... Is this possible? If so, please tell me! Thanks,
ArtyEevee :D

Answered by CodeMaster007 [earned 5 cycles]
View Answer
Voters
rickysong
CodeMaster007
ArtyEevee
Comments
hotnewtop
CodeMaster007

Reload the page and the program should stop. If you want to make a loop which stops after a certain number of times run, then just don't use a infinite loop. Instead specify how much times you want the program to run. Its simple.

ArtyEevee

@CodeMaster007 ohhhhhh i didnt think of that! tysm! ill just put a hundred billion XD

CodeMaster007

Np, happy to help! @ArtyEevee

ArtyEevee

@CodeMaster007 Do u wanna join my team? u have some python stuff

CodeMaster007

No, sorry. I just started school again and have homework/tests but if you need help with anything, you can post another question and i'll be glad to answer it for you. :) @ArtyEevee

ArtyEevee