day1/session3.tex
changeset 148 70fe69731761
parent 142 57e0f0fd3317
child 161 ff22fae4fde5
equal deleted inserted replaced
147:6874a667dc4e 148:70fe69731761
   156 \end{itemize}
   156 \end{itemize}
   157 \begin{lstlisting}
   157 \begin{lstlisting}
   158 In []: L = []
   158 In []: L = []
   159 In []: T = []
   159 In []: T = []
   160 In []: for line in open('pendulum.txt'):
   160 In []: for line in open('pendulum.txt'):
   161   ....     len, t = line.split()
   161   ....     ln, t = line.split()
   162   ....     L.append(float(len))
   162   ....     L.append(float(ln))
   163   ....     T.append(float(t))
   163   ....     T.append(float(t))
   164 \end{lstlisting}
   164 \end{lstlisting}
   165 We now have two lists L and T
   165 We now have two lists L and T
   166 \end{frame}
   166 \end{frame}
   167 
   167