jeudi 19 août 2021

Why else executed even before if and elif

I feel everything is right but somehow it always skips if and elif for some reason can you help me plz

groupA=["ali","saleh"]
groupB=["mike","john"]
x= input(str("What is ur name "))
if x == groupA:
    print("Welcome qatari")
elif x == groupB:
    print("Welcome American")
else:
 b=input("Where are you from ")
 print("Welcome "+b+" citizan")

Aucun commentaire:

Enregistrer un commentaire