박선하

Add exit function

Showing 1 changed file with 8 additions and 3 deletions
1 -print("*Input text*"+'\n') 1 +import sys
2 2
3 -text = input() 3 +print("*Input text or 'exit'*"+'\n')
4 -print(text) 4 +
5 +while True:
6 + text = input()
7 + if(text == "exit"):
8 + sys.exit()
9 + print(text+'\n')
...\ No newline at end of file ...\ No newline at end of file
......