Skip to content

Commit 9191f40

Browse files
committed
Fix some points on the week eleven slides about dictionaries.
1 parent 38396db commit 9191f40

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cs102-week-eleven.tex

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@
442442
\vspace*{.025in}
443443
\begin{center}
444444
%
445-
\normalsize \noindent Since tuples are immutable, a dictionary can use it as
446-
a key\\
445+
\normalsize \noindent Since lists are mutable, a dictionary cannot use it as
446+
a key! \\
447447
%
448448
\end{center}
449449
%
@@ -482,8 +482,8 @@
482482
%
483483
\vspace*{-.2in}
484484
%
485-
\item The honest answer is ``it depends''! Use judgement and benchmarks!
486-
Defend your decision with evidence!
485+
\item The honest answer is ``it depends''! Use your judgement and
486+
benchmarks! Defend your decision with evidence!
487487
%
488488
\end{itemize}
489489
%
@@ -511,8 +511,7 @@
511511
%
512512
\item {\bf Q2}: What are the characteristics of dictionaries in Python?
513513
%
514-
\item {\bf Q3}: How does the {\tt sympy} package support set
515-
programming?
514+
\item {\bf Q3}: How do you decide between a dictionary or a function?
516515
%
517516
\item {\bf Q4}: What functions can process a multiset discrete
518517
structure?

0 commit comments

Comments
 (0)