+\begin{frame}[fragile]
+ \frametitle{Strings}
+ \begin{minted}{pycon}
+>>> s = 'Hello, world.'
+>>> str(s)
+'Hello, world.'
+>>> repr(s)
+"'Hello, world.'"
+>>> str(1/7)
+'0.14285714285714285'
+>>> x = 10 * 3.25
+>>> y = 200 * 200
+>>> s = 'The value of x is ' + repr(x) + ', and y is ' + repr(y) + '...'
+>>> print(s)
+The value of x is 32.5, and y is 40000...
+>>> hello = 'hello, world\n'
+>>> hellos = repr(hello)
+>>> print(hellos)
+'hello, world\n'
+ \end{minted}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{String formatting}
+ \begin{minted}{python}
+'We are the {} who say "{}!"'.format('knights', 'Ni')
+# We are the knights who say "Ni!"
+
+'{0} {0} {1}'.format('ekke', 'ptang')
+# ekke ekke ptang
+
+# Number formatting and padding
+'{0:.3f} {1:03d} "{2:<5}" "{2:,>5}"'.format(
+ 1.0/3, 42, 'hi')
+# '0.333 042 "hi " ",,,hi"
+
+# Other Usefull string function
+','.join(['a', 'b', 'c'])
+'a,b,c'.split(',')
+ \end{minted}
+\end{frame}
+
+\section{And much more\ldots}
+\begin{frame}[fragile]
+ \frametitle{Error handling}
+ \begin{minted}{python}
+try:
+ x = 5/0
+except ZeroDivisionError as e:
+ print(e)
+
+try:
+ do_some_stuff()
+except:
+ rollback()
+ raise
+else:
+ commit()
+finally:
+ cleanup()
+ \end{minted}
+\end{frame}