Nov-27-2021, 09:11 PM
(This post was last modified: Nov-27-2021, 09:11 PM by BashBedlam.)
I'm not sure what
cls()
is but it seems to be the source of you difficulty. Without it your code works as expected.intro_index_selected = 1 def login_form(): print("--Login Form--") input("Username") input("Password") def intro_menu_key_enter(): global intro_index_selected if intro_index_selected == 1: login_form() elif intro_index_selected == 2: registration_form() else: exit() intro_menu_key_enter ()