0
How to call a function if input is not one of a list of names?
Hi, I’m working on a python3 software and I have a question: How to call a function if input is not one of a list of names? For example: PYTHON3 def menu(): Blank a = input(“What’s your name?:”); names = [‘blank’,’blank1’,’blank2’] So how do I call the function menu() if a is not one of the names?
3 ответов