'how to stop a loop and printing the last statement
I have created this code in loop however I'm unable to print "Have a nice day" the loop is either stopping right after I enter "Quit" or it keep running with no end. can someone point out to me how can i get to print the sentence "Have a nice day" then exit the loop after that.

Solution 1:[1]
In line 23, you are taking input in Text2, and in the if the condition on line 24, you are comparing with the variable text
You have to compare Text2 in line 24 to fix this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ali Zahid Raja |
