Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
prm1
Commits
17d4c151
Commit
17d4c151
authored
Sep 29, 2020
by
Martin Mareš
Browse files
Úvod: Drobné úpravy, input s promptem
parent
87eda10a
Changes
4
Hide whitespace changes
Inline
Side-by-side
01-uvod/01-uvod.tex
View file @
17d4c151
...
...
@@ -7,7 +7,7 @@
\title
{
Programování 1: Úvod do Pythonu
}
\author
[Martin Mareš]
{
Martin Mareš
\\\texttt
{
mj@ucw.cz
}}
\institute
{
Katedra Aplikované Matematiky
\\
MFF UK Praha
}
\date
{
20
19
}
\date
{
20
20
}
\begin{document}
\setbeamertemplate
{
navigation symbols
}{}
\setbeamertemplate
{
footline
}{}
...
...
01-uvod/first-comments.py
View file @
17d4c151
#!/usr/bin/env python3
# Nejprve zjistíme, do kolika počítat
print
(
"Do kolika chceš počítat?"
)
n
=
int
(
input
())
n
=
int
(
input
(
"Do kolika chceš počítat? "
))
# Aktuální číslo
i
=
1
...
...
01-uvod/first-input.py
View file @
17d4c151
print
(
"Do kolika chceš počítat?"
)
n
=
int
(
input
())
n
=
int
(
input
(
"Do kolika chceš počítat? "
))
i
=
1
...
...
TODO
View file @
17d4c151
- input("Prompt")
- and/or vyhodnocované zkráceně
- if jako výraz?
- rekurze
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment