basic types
[linuxnijmegen-python.git] / p.tex
diff --git a/p.tex b/p.tex
index b5635a4..b338e76 100644 (file)
--- a/p.tex
+++ b/p.tex
@@ -3,6 +3,11 @@
 \frame{\titlepage}
 
 \section{Introduction}
+\begin{frame}
+       \frametitle{What is Python}
+       \includegraphics[width=\linewidth]{2.png}
+\end{frame}
+
 \begin{frame}
        \frametitle{What is Python}
        \begin{itemize}
 
 \begin{frame}[fragile]
        \frametitle{How to start}
-       \begin{block}{Interpreter}
-
-       \end{block}
+       \framesubtitle{Interpreter}
+       \begin{minted}[breaklines]{pycon}
+Python 3.5.1 (default, Dec  7 2015, 12:58:09) 
+[GCC 5.2.0] on linux
+Type "help", "copyright", "credits" or "license" for more
+information.
+>>> print('Hello world!')
+Hello world!
+>>> i = 1972
+>>> print(str(i/46) + ' hoi')
+42.869565217391305 hoi
+       \end{minted}
+\end{frame}
 
-       \begin{block}{\texttt{.py} files}
-               \begin{minted}{python}
+\begin{frame}[fragile]
+       \frametitle{How to start}
+       \framesubtitle{Source files}
+       \begin{minted}{python}
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-print('hello world') #This is a comment
-               \end{minted}
+print('hello world')
+i = 1972
+print(str(i/46) + ' hoi')
+       \end{minted}
+\end{frame}
+
+\section{Basics}
+\begin{frame}[fragile]
+       \frametitle{Basictypes}
+       \begin{block}{types}
+               \begin{itemize}
+                       \item \mint{python}|int|
+                       \item \mint{python}|float|
+                       \item \mint{python}|str|
+                       \item \mint{python}|list|
+               \end{itemize}
+       \end{block}
+       \begin{block}{operators}
+               \begin{itemize}
+                       \item Numbers: \mintinline{python}{+ - / * // \% @ **}
+                       \item Comparison: \mintinline{python}{< <= > >= == != is}
+                       \item Boolean: \mintinline{python}{and or not}
+                       \item Bitwise: \mintinline{python}{& | ^ ~ << >>}
+                       \item List: \mintinline{python}{[i] [i:j] in}
+                       \item In place: \mintinline{python}{*= += ...}
+               \end{itemize}
        \end{block}
 \end{frame}
+
+\section{Control flow}
+\begin{frame}[fragile]
+       \frametitle{}
+\end{frame}
+
+\section{Datastructures}
+
+\section{Input/Output}
+
+\section{Errors}
+
+\section{Standard Library}
 \end{document}