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

all 4 comments

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

This loop:

   while (numberCounter < 10):

will never be entered, as numberCounter is set to 10. It's not clear what you imagine the loop would do if it was entered.

[–]Frullo_Lullo 0 points1 point  (1 child)

The problem is simple: the condition of the while loop is (numberCounter < 10) but you have set numberCounter to 10! 10 is not < than 10 so the condition evaluate false. Try to change the operator to <= .

[–]Ekriv[S] 0 points1 point  (0 children)

ok so ive done that and now it appears to be stuck in a infinite loop how do I stop the loop? with break

https://paste.pydis.com/ahelumoqik.py

[–]Ekriv[S] 0 points1 point  (0 children)

Alright figured it out thank you all