l=["welcome = 0","good morning=1","hello=2"] a=input("Enter user name") print("select greetings") print(l) c=int(input("Enter")) if c == 1 or c==2 or c==0: d=l[c] print(d,a) else: print("invalid")
solo
l=["welcome = 0","good morning=1","hello=2"] a=input("Enter user name") print("select greetings") print(l) c=int(input("Enter")) if c == 1 or c==2 or c==0: d=l[c] print(d,a) else: print("invalid")
Leave feedback in the comments!
Log in or sign up for Devpost to join the conversation.