I'm currently learning python and doing some basic tasks but I'm having difficulties with this code:
names = ["Terry", "Ben", "Mike"]
name = input("oya enter name ")
if names == name:
print("Welcome " + name)
else:
print("Who are you???!!!")
I'm trying to get the user to input a name and if the name is not in the array the code will print the else command but when I run the code and enter one of the names it does not work. Any solution please?