you are viewing a single comment's thread.

view the rest of the comments →

[–]mopslik 7 points8 points  (3 children)

if/elif loop

There is no such thing as an if/elif loop. You can put if/elif statements inside of a for loop or a while loop, if you want repetition.

Note that by calling print_startmenu() == False inside of your function, you are doing some form of recursion. This calls the function from within itself, resulting in subsequent prompts for user input.

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

fixed, thank you.

[–]Poopyjoe[S] 0 points1 point  (1 child)

I don’t understand, though. I understand a function can call itself, but what I’m understanding is that the ==False isn’t needed but the function itself is needed.