while message !'quit'message input(promptprint(messageat uwe define prompt that tells the user their two optionsentering message or entering the quit value (in this case'quit'then we set up variable message to store whatever value the user enters we define message as an empty string""so python has something to check the first time it reaches the while line the first time the program runs and python reaches the while statementit needs to compare the value of message to 'quit'but no user input has been entered yet if python has nothing to compareit won' be able to continue running the program to solve this problemwe make sure to give message an initial value although it' just an empty stringit will make sense to python and allow it to perform the comparison that makes the while loop work this while loop runs as long as the value of message is not 'quitthe first time through the loopmessage is just an empty stringso python enters the loop at message input(prompt)python displays the prompt and waits for the user to enter their input whatever they enter is stored in message and printedthenpython reevaluates the condition in the while statement as long as the user has not entered the word 'quit'the prompt is displayed again and python waits for more input when the user finally enters 'quit'python stops executing the while loop and the program endstell me somethingand will repeat it back to youenter 'quitto end the program hello everyonehello everyonetell me somethingand will repeat it back to youenter 'quitto end the program hello again hello again tell me somethingand will repeat it back to youenter 'quitto end the program quit quit this program works wellexcept that it prints the word 'quitas if it were an actual message simple if test fixes thisprompt "\ntell me somethingand will repeat it back to you:prompt +"\nenter 'quitto end the program message "while message !'quit'message input(promptif message !'quit'print(messageuser input and while loops