day1/session2.tex
changeset 392 534803f1ca11
parent 391 92e56697e489
child 397 28915381ac32
equal deleted inserted replaced
391:92e56697e489 392:534803f1ca11
   360 \end{itemize}
   360 \end{itemize}
   361 \end{frame}
   361 \end{frame}
   362 
   362 
   363 \begin{frame}[fragile]
   363 \begin{frame}[fragile]
   364 \frametitle{Plotting from \typ{pendulum.txt}}
   364 \frametitle{Plotting from \typ{pendulum.txt}}
   365 Open a new script and type the following:
   365 Open a new script\\
       
   366 Save as \typ{pendulum.py} after typing first line
   366 \begin{lstlisting}
   367 \begin{lstlisting}
   367 L = []
   368 L = []
   368 t = []
   369 t = []
   369 for line in open('pendulum.txt'):
   370 for line in open('pendulum.txt'):
   370     point = line.split()
   371     point = line.split()