Reputation: 113
I am probably overlooking something very simple here but for some reason when i run this block of code, it will only ask for the menu_selection var, it will not ask for input from any of the if cases
import user
print("1.) Login")
print("2.) Register")
print("3.) Exit")
menu_selection = input("Selection:")
if menu_selection == 1:
username = input("Enter username:")
password = input("Enter password:")
login_user = username, password
elif menu_selection == 2:
username = input("Enter username:")
password = input("Enter password:")
new_user = user.User(username, password)
elif menu_selection == 3:
exit("PyMess closed.")
Upvotes: 1
Views: 48