basic types
authorMart Lubbers <mart@martlubbers.net>
Thu, 3 Mar 2016 20:45:18 +0000 (21:45 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 3 Mar 2016 20:45:18 +0000 (21:45 +0100)
.gitignore
img/1.png [new file with mode: 0644]
img/2.png [new file with mode: 0644]
p.tex
pre.tex

index 85b9c3b..3c036f5 100644 (file)
@@ -7,3 +7,4 @@
 *.snm
 *.toc
 *.vrb
+_minted*
diff --git a/img/1.png b/img/1.png
new file mode 100644 (file)
index 0000000..23a4c6e
Binary files /dev/null and b/img/1.png differ
diff --git a/img/2.png b/img/2.png
new file mode 100644 (file)
index 0000000..9ef90d5
Binary files /dev/null and b/img/2.png differ
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}
diff --git a/pre.tex b/pre.tex
index 778315f..b54458d 100644 (file)
--- a/pre.tex
+++ b/pre.tex
@@ -1,12 +1,16 @@
 \documentclass{beamer}
 
+\usepackage{color}
 \usepackage{minted}
+\usepackage{graphicx}
 
 \title[Python]{The Python programming language}
 \author[Lubbers]{M. Lubbers}
 \date[LUGN43]{\today}
 \subject{Python}
 
+\graphicspath{{./img/}}
+
 \AtBeginSection[]{%
        \begin{frame}
                \frametitle{Table of Contents}