Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박선하
/
Git_Branch
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-09-30 04:05:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
678dfecedb7a30fc64654adb0074aa9ee22b3d0d
678dfece
1 parent
2014d29b
Add exit function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
echo.py
echo.py
View file @
678dfec
print
(
"*Input text*"
+
'
\n
'
)
import
sys
text
=
input
()
print
(
text
)
print
(
"*Input text or 'exit'*"
+
'
\n
'
)
while
True
:
text
=
input
()
if
(
text
==
"exit"
):
sys
.
exit
()
print
(
text
+
'
\n
'
)
\ No newline at end of file
...
...
Please
register
or
login
to post a comment