From d0e44e3fecf98af4e1b35e628b2fae697f0d231a Mon Sep 17 00:00:00 2001 From: Santosh G. Vattam Date: Wed, 7 Oct 2009 15:12:17 +0530 Subject: Updated Session-1.tex as per suggestions from yesterday. --- day1/Session-3.vrb | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'day1/Session-3.vrb') 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} -- cgit