list = ["Joe","21","blue" "Matthew","73","red"] def identity(fname, age, colour): if name == list[0] print("Hello", name, "you are", age, "years old") print("And your favourite colour is ",colour) else: print("Who are you?") name = str(input("what is your first name?")) age = int(input("What is your age")) colour = str(input("What is your favourite colour")) identity(name, age, colour) I'm trying to make it so that whenever you don't give the right details the program asks who are you, but I don't know how to make it compare the lists data to the data inputted whenever i execute it, it doesn't appear with the greet message
first off, don't use `list` as the variable name