diff options
author | Santosh G. Vattam | 2009-10-07 15:12:17 +0530 |
---|---|---|
committer | Santosh G. Vattam | 2009-10-07 15:12:17 +0530 |
commit | d0e44e3fecf98af4e1b35e628b2fae697f0d231a (patch) | |
tree | ebb6e5e5cbb860582ef272ef0f29811c8dc7407d /day1/Session-3.vrb | |
parent | 4dbbd19a657d5cbbcf0ebba608bca82721fb1757 (diff) | |
download | workshops-d0e44e3fecf98af4e1b35e628b2fae697f0d231a.tar.gz workshops-d0e44e3fecf98af4e1b35e628b2fae697f0d231a.tar.bz2 workshops-d0e44e3fecf98af4e1b35e628b2fae697f0d231a.zip |
Updated Session-1.tex as per suggestions from yesterday.
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} |