From b08fb779fa7ebeee4ae262e86120702a55b00d18 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Wed, 28 Oct 2009 12:37:59 +0530 Subject: Removed multiplication of list with * operator. --- day1/session3.tex | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'day1/session3.tex') diff --git a/day1/session3.tex b/day1/session3.tex index e5622c3..ae0eea2 100644 --- a/day1/session3.tex +++ b/day1/session3.tex @@ -317,27 +317,11 @@ 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} -- cgit