condition = True while condition: n = input() if condition and (n != "end"): print('Hello world!') condition = (n != "end")
To embed this project on your website, copy the following code and paste it into your website's HTML: