not sure why my python 3 code isnt working
Go to solution
Solved by CornOnJacob,
i fixed that but the error is in the while loop
-snip-
The way you have it now, i.e.
while menu_input != "i" or menu_input != "I" or menu_input != "p" or menu_input != "P" or menu_input != "q" or menu_input != "Q":
at least one of those conditions will fail, because menu_input can't equal "i" and "p" at the same time. While menu_input does not equal "i" or it does not equal "p", it will display "invalid menu choice." You made a Catch-22 conditional.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now