basic types
[linuxnijmegen-python.git] / p.tex
1 %&p
2 \begin{document}
3 \frame{\titlepage}
4
5 \section{Introduction}
6 \begin{frame}
7 \frametitle{What is Python}
8 \includegraphics[width=\linewidth]{2.png}
9 \end{frame}
10
11 \begin{frame}
12 \frametitle{What is Python}
13 \begin{itemize}
14 \item Interpreted
15 \item Duck-typing
16 \item High-level
17 \item Multi-paradigm
18 \item \ldots
19 \end{itemize}
20 \end{frame}
21
22 \begin{frame}[fragile]
23 \frametitle{How to start}
24 \framesubtitle{Interpreter}
25 \begin{minted}[breaklines]{pycon}
26 Python 3.5.1 (default, Dec 7 2015, 12:58:09)
27 [GCC 5.2.0] on linux
28 Type "help", "copyright", "credits" or "license" for more
29 information.
30 >>> print('Hello world!')
31 Hello world!
32 >>> i = 1972
33 >>> print(str(i/46) + ' hoi')
34 42.869565217391305 hoi
35 \end{minted}
36 \end{frame}
37
38 \begin{frame}[fragile]
39 \frametitle{How to start}
40 \framesubtitle{Source files}
41 \begin{minted}{python}
42 #!/usr/bin/env python3
43 # -*- coding: utf-8 -*-
44
45 print('hello world')
46 i = 1972
47 print(str(i/46) + ' hoi')
48 \end{minted}
49 \end{frame}
50
51 \section{Basics}
52 \begin{frame}[fragile]
53 \frametitle{Basictypes}
54 \begin{block}{types}
55 \begin{itemize}
56 \item \mint{python}|int|
57 \item \mint{python}|float|
58 \item \mint{python}|str|
59 \item \mint{python}|list|
60 \end{itemize}
61 \end{block}
62 \begin{block}{operators}
63 \begin{itemize}
64 \item Numbers: \mintinline{python}{+ - / * // \% @ **}
65 \item Comparison: \mintinline{python}{< <= > >= == != is}
66 \item Boolean: \mintinline{python}{and or not}
67 \item Bitwise: \mintinline{python}{& | ^ ~ << >>}
68 \item List: \mintinline{python}{[i] [i:j] in}
69 \item In place: \mintinline{python}{*= += ...}
70 \end{itemize}
71 \end{block}
72 \end{frame}
73
74 \section{Control flow}
75 \begin{frame}[fragile]
76 \frametitle{}
77 \end{frame}
78
79 \section{Datastructures}
80
81 \section{Input/Output}
82
83 \section{Errors}
84
85 \section{Standard Library}
86 \end{document}