서준혁

add exit function

Showing 1 changed file with 2 additions and 1 deletions
1 -txt = input("Enter what you want to say >> ") 1 +txt = input("Enter what you want to say\n(If you enter ‘exit’, the program will exit) >> ")
2 +if(txt == "exit"): exit()
2 print(txt) 3 print(txt)
...\ No newline at end of file ...\ No newline at end of file
......