diff options
Diffstat (limited to 'day1/Session-3.vrb')
-rw-r--r-- | day1/Session-3.vrb | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/day1/Session-3.vrb b/day1/Session-3.vrb index 6bd629e..d9a9bd8 100644 --- a/day1/Session-3.vrb +++ b/day1/Session-3.vrb @@ -1,8 +1,14 @@ -\frametitle {Code Layout} - \begin{itemize} - \item Indentation - \item Tabs or Spaces?? - \item Maximum Line Length - \item Blank Lines - \item Encodings - \end{itemize} +\frametitle {Why are they useful?} + \small + \begin{lstlisting} +for element in (1, 2, 3): + print element +for key in {'one':1, 'two':2}: + print key +for char in "123": + print char +for line in open("myfile.txt"): + print line +for line in urllib2.urlopen('http://site.com'): + print line + \end{lstlisting} |