Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조혁균
/
Open_Source_Exp04_assign2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
조혁균
2019-03-29 11:49:17 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e0b151df785fc0c7ab8bb63d6aae458be642e87c
e0b151df
1 parent
b0079a4e
exit function
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
Experiments04_exit.ipynb
Experiments04_exit.ipynb
0 → 100644
View file @
e0b151d
{
"cells"
:
[
{
"cell_type"
:
"code"
,
"execution_count"
:
8
,
"metadata"
:
{},
"outputs"
:
[
{
"name"
:
"stdout"
,
"output_type"
:
"stream"
,
"text"
:
[
"If you enter 'exit', the program will exit
\n
"
,
"exit
\n
"
]
}
],
"source"
:
[
"import sys
\n
"
,
"# sys.exit()
\n
"
,
"print(
\"
If you enter 'exit', the program will exit
\"
)
\n
"
,
"while input() !=
\"
exit
\"
:
\n
"
,
" print(
\"
If you enter 'exit', the program will exit
\"
)"
]
}
],
"metadata"
:
{
"kernelspec"
:
{
"display_name"
:
"Python 3"
,
"language"
:
"python"
,
"name"
:
"python3"
},
"language_info"
:
{
"codemirror_mode"
:
{
"name"
:
"ipython"
,
"version"
:
3
},
"file_extension"
:
".py"
,
"mimetype"
:
"text/x-python"
,
"name"
:
"python"
,
"nbconvert_exporter"
:
"python"
,
"pygments_lexer"
:
"ipython3"
,
"version"
:
"3.7.1"
}
},
"nbformat"
:
4
,
"nbformat_minor"
:
2
}
Please
register
or
login
to post a comment