How do I add a loop to this?
I have written a code using conditional statements. But, I need to run it on a loop. For example, if I input Today is: Monday and it prints the statement 'I am having the Monday blues again! How long till it is Friday?'.
How do I get it to keep running the code so that it keeps repeating the input Today is: ?
Can someone please clarify this for me?
while True: answer = input("What day is it today") if answer.lower() == "monday": print("Oh boy is it monday") #if this is your expected output than add break break elif answer.lower() == "tuesday": print("Not as bad as monday....")
while True: print("I will run forever!")
string = "HELLO" print(string) print(string.lower())