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 Answers