diff --git a/01-uvod/01-uvod.tex b/01-uvod/01-uvod.tex index eb5857893b82513065f4703666fdbfae198b5ec8..189fc844f974aca52d87652e06fa4511e74bfdab 100644 --- a/01-uvod/01-uvod.tex +++ b/01-uvod/01-uvod.tex @@ -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{2019} +\date{2020} \begin{document} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{footline}{} diff --git a/01-uvod/first-comments.py b/01-uvod/first-comments.py index 7df2b95b1d4d41d1432669525df2321d71662c7e..a31a2d1f3f31df3cdee77442f5832ac409db2850 100644 --- a/01-uvod/first-comments.py +++ b/01-uvod/first-comments.py @@ -1,8 +1,7 @@ #!/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 diff --git a/01-uvod/first-input.py b/01-uvod/first-input.py index a781154341014790df7e3c0abf4bfdf7abbbedad..3f50d1856d524bedbb277eb12191fb048a166f8a 100644 --- a/01-uvod/first-input.py +++ b/01-uvod/first-input.py @@ -1,5 +1,4 @@ -print("Do kolika chceš počítat?") -n = int(input()) +n = int(input("Do kolika chceš počítat? ")) i = 1 diff --git a/TODO b/TODO index 79c92117bf574aaa58c3fa106ba33975b2419887..ceabc8e171142fdb4e59ebcd66f37938d1e903fb 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,3 @@ -- input("Prompt") - - and/or vyhodnocované zkráceně - if jako výraz? - rekurze