I am trying to code a function that gives the user results based on the input. So basically what my function is supposed to do is to make the user input the values for day and based on that proceed towards asking the user their name. If even one of the answers doesn't match the required value, I want my code to be display invalid entry .My code is:
days=[monday, tuesday, wednesday, thursday, friday, saturday, sunday]
def my_function():
for items in days:
day=input('what is the day')
if input==items:
print('okay')
for stuff in names:
name= input("what is your name?")
if input==stuff:
print('great')
else:
print('invalid entry')
else:
print('invalid entry')
please be gentle as i am new to python. thanks in advance
namesis not defined.inputfunction not with its result.