Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wlstp8473
/
assignment2
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
wlstp8473
2021-04-01 02:29:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
293e1ce477c3071b1d19a7715b0cc5f98782fddc
293e1ce4
1 parent
29596707
echoexitprogram
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
echoprogram.py
echoprogram.py
View file @
293e1ce
1
#echo program
1
#echo program
2
+
def
echoexit
(
userinput
):
3
+
if
(
userinput
==
"exit"
):
4
+
exit
()
5
+
result
=
print
(
userinput
)
6
+
7
+
return
result
8
+
2
userinput
=
input
(
""
)
9
userinput
=
input
(
""
)
3
-
prin
t
(
userinput
)
10
+
result
=
echoexi
t
(
userinput
)
...
...
Please
register
or
login
to post a comment