Toggle navigation
Toggle navigation
This project
Loading...
Sign in
노강호
/
assignment4_2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
노강호
2021-03-26 12:41:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
99fdd823cf7ea38ae8913c43503d9666e660ae45
99fdd823
1 parent
14b4dc41
add exit function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
echo.py
echo.py
View file @
99fdd82
1
def
main
():
1
def
main
():
2
+
print
(
"Type
\"
exit
\"
to exit program"
)
2
while
(
1
):
3
while
(
1
):
3
inp
=
input
()
4
inp
=
input
()
5
+
if
(
inp
==
"exit"
):
6
+
break
4
print
(
inp
)
7
print
(
inp
)
5
8
6
9
...
...
Please
register
or
login
to post a comment