Skip to content
Snippets Groups Projects
Commit 06823be2 authored by Martin Mareš's avatar Martin Mareš
Browse files

Řezy: Upgrade, zmínky o konverzích

parent 2e2e95f3
Branches
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
\title{Programování 1: Seznamy, řezy a řetězce} \title{Programování 1: Seznamy, řezy a řetězce}
\author[Martin Mareš]{Martin Mareš\\\texttt{mj@ucw.cz}} \author[Martin Mareš]{Martin Mareš\\\texttt{mj@ucw.cz}}
\institute{Katedra Aplikované Matematiky\\MFF UK Praha} \institute{Katedra Aplikované Matematiky\\MFF UK Praha}
\date{2019} \date{2020}
\begin{document} \begin{document}
\setbeamertemplate{navigation symbols}{} \setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{} \setbeamertemplate{footline}{}
...@@ -270,4 +270,40 @@ True \cmt{(pozor, nerespektuje česká pravidla)} ...@@ -270,4 +270,40 @@ True \cmt{(pozor, nerespektuje česká pravidla)}
% ---------------------------------------------------------------------- % ----------------------------------------------------------------------
\begin{frame}{Převody mezi typy dat}
\py{%
int("123")
}{%
123
}
\py{%
str(123)
}{%
"123"
}
\py{%
list("123")
}{%
['1', '2', '3']
}
\py{%
str(['1', '2', '3'])
}{%
"['1', '2', '3']"
}
\py{%
list(range(1, 10))
}{%
[1, 2, 3, 4, 5, 6, 7, 8, 9]
}
\end{frame}
% ----------------------------------------------------------------------
\end{document} \end{document}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment