day1/Session-3.vrb
changeset 52 fccb3551c7d5
parent 46 63704b5650f1
equal deleted inserted replaced
48:7f4c51382f89 52:fccb3551c7d5
     1 \frametitle {Code Layout}
     1 \frametitle {Why are they useful?}
     2   \begin{itemize}
     2   \small
     3         \item Indentation
     3   \begin{lstlisting}
     4         \item Tabs or Spaces??
     4 for element in (1, 2, 3):
     5         \item Maximum Line Length
     5     print element
     6         \item Blank Lines
     6 for key in {'one':1, 'two':2}:
     7         \item Encodings
     7     print key
     8    \end{itemize}
     8 for char in "123":
       
     9     print char
       
    10 for line in open("myfile.txt"):
       
    11     print line
       
    12 for line in urllib2.urlopen('http://site.com'):
       
    13     print line
       
    14   \end{lstlisting}