I am trying to write a simple code that displays 3 sets of greetings in accordance to what day of the week a user inputs. I am learning about functions as I am a beginner so please answer in terms of a function usage.
I tried to set a function for the greeting instructions and another as an input from the user which is passed as an argument to the first function. please tell me what's wrong with the code.
def action(user_response):
greeting = "hello madam"
greeting2 = " Good afternoon madam"
greeting3 = "Have a good weekend"
while user_response == "tuesday" or "monday":
return greeting
if user_response == "wednesday" or "thursday":
return greeting2
return greeting3
def user_response():
user_input = input("what day of the week is it: ").lower()
print(f"{user_input}")
return user_response()
def main():
action(user_response)
user_response()
main()