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 | df06ec8d9c0dd3acd23a46cef787fe7d3b345da7 (patch) | |
tree | 5d9b3e49b3dfadfcc15ef8c5ce8e6d926b155892 /day1 | |
parent | eecf56e263d12b2e1d207307e6f33382e672355a (diff) | |
download | workshops-more-scipy-df06ec8d9c0dd3acd23a46cef787fe7d3b345da7.tar.gz workshops-more-scipy-df06ec8d9c0dd3acd23a46cef787fe7d3b345da7.tar.bz2 workshops-more-scipy-df06ec8d9c0dd3acd23a46cef787fe7d3b345da7.zip |
Removed multiplication of list with * operator.
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(';') |