diff options
Diffstat (limited to 'day1')
-rw-r--r-- | day1/session3.tex | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/day1/session3.tex b/day1/session3.tex index e5622c3..ae0eea2 100644 --- a/day1/session3.tex +++ b/day1/session3.tex @@ -317,30 +317,14 @@ from pylab import pie from scipy import mean, median, std from scipy import stats -scores = [[]] * 5 -ninety_percents = [{}] * 5 +scores = [[], [], [], [], []] +ninety_percents = [{}, {}, {}, {}, {}] \end{lstlisting} \end{frame} \begin{frame}[fragile] \frametitle{Building data for all subjects \ldots} \begin{lstlisting} -from pylab import pie -from scipy import mean, median, std -from scipy import stats - \end{lstlisting} - - \begin{block}{Repeating list items} - \begin{lstlisting} -scores = [[]] * 5 -ninety_percents = [{}] * 5 - \end{lstlisting} - \end{block} -\end{frame} - -\begin{frame}[fragile] - \frametitle{Building data for all subjects \ldots} - \begin{lstlisting} for record in open('sslc1.txt'): record = record.strip() fields = record.split(';') |