Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서준혁
/
OSW_Assignment4
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-24 13:43:37 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf3fe8ff04d816c34359846e71ef87de50429a95
bf3fe8ff
1 parent
46860159
add exit function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
echo.py
echo.py
View file @
bf3fe8f
1
-
txt
=
input
(
"Enter what you want to say >> "
)
1
+
txt
=
input
(
"Enter what you want to say
\n
(If you enter ‘exit’, the program will exit) >> "
)
2
+
if
(
txt
==
"exit"
):
exit
()
2
print
(
txt
)
3
print
(
txt
)
...
\ No newline at end of file
...
\ No newline at end of file
...
...
Please
register
or
login
to post a comment