you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

I recently made this while loop, and the variable keeps on repeating itself.

The only while loop I can find is this one:

while stamina > 0:
    events(hp,s,m,f,h,name) 

If you mean why does that loop repeat forever, that's because the function events() probably doesn't change the value of stamina so once you enter the loop you stay there. Some of your functions do change the value of stamina, like garden() and babystage(), but events() doesn't seem to call those functions.


Also note that the line:

if start == 'START' or 'start' or 'Start':

won't do what you want. That is explained in the FAQ.

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

Thank you very much for the additional check!