haenim

add exit function

Showing 1 changed file with 13 additions and 3 deletions
1 def echo(): 1 def echo():
2 - i = input("입력해주세요: ") 2 + user = input("입력해주세요: ")
3 - print(i) 3 + print(user)
4 4
5 -echo()
6 5
6 +#echo()
7 +
8 +def exit():
9 + user = input("입력해주세요: ")
10 + if user == "exit":
11 + return;
12 +
13 + else:
14 + print(user)
15 +
16 +exit()
......