Toggle navigation
Toggle navigation
This project
Loading...
Sign in
DongyoungKwon
/
branch_assignment1
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
DongyoungKwon
2020-09-25 23:36:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
07a7f8edfc0ee510dcb9e37bfda7b57aff1a972f
07a7f8ed
1 parent
6595fd13
Add Exit function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
Echo.py
Echo.py
View file @
07a7f8e
1
-
i
=
input
(
"input >>"
)
1
+
def
Exit
(
i
):
2
+
if
(
i
==
"exit"
):
3
+
return
True
4
+
else
:
5
+
return
False
2
6
3
-
print
(
i
)
7
+
i
=
input
(
"input >>"
)
8
+
if
(
Exit
(
i
)):
9
+
exit
(
0
)
10
+
else
:
11
+
print
(
i
)
...
...
Please
register
or
login
to post a comment