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 | 7f3e6d1f6467e1e8f6e3db1f5867866584873c3a (patch) | |
tree | ebb6e5e5cbb860582ef272ef0f29811c8dc7407d /day1/Session-3.vrb | |
parent | 4383a9a97a18150bfcda48d9111429d891a46c68 (diff) | |
download | workshops-more-scipy-7f3e6d1f6467e1e8f6e3db1f5867866584873c3a.tar.gz workshops-more-scipy-7f3e6d1f6467e1e8f6e3db1f5867866584873c3a.tar.bz2 workshops-more-scipy-7f3e6d1f6467e1e8f6e3db1f5867866584873c3a.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} |