diff options
author | Madhusudan.C.S | 2009-10-28 12:37:59 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2009-10-28 12:37:59 +0530 |
commit | b08fb779fa7ebeee4ae262e86120702a55b00d18 (patch) | |
tree | 5d9b3e49b3dfadfcc15ef8c5ce8e6d926b155892 /day1/session3.tex | |
parent | fb30bbe44fc58c81bfb07f0f0d93bfc1c1a3056d (diff) | |
download | workshops-b08fb779fa7ebeee4ae262e86120702a55b00d18.tar.gz workshops-b08fb779fa7ebeee4ae262e86120702a55b00d18.tar.bz2 workshops-b08fb779fa7ebeee4ae262e86120702a55b00d18.zip |
Removed multiplication of list with * operator.
Diffstat (limited to 'day1/session3.tex')
-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(';') |