user = input("userinput: ")
myList = ["Noah", "Mike"]
for item in list:
if user == item:
print("hello {}".format(user))
else:
print("invalid")
what I am trying to do is if you said something in the list you get hello (and the name you pick)
for ex:
input: Noah
output: hello Noah
And if you do not put any thing in nothing in the list correctly
input: Mikee
output: invalid
so basically I am asking a more complex if and else statement in python lists