From afbe583042e3f8c6c116d1a0d923a2327e943854 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 23 Oct 2021 00:40:45 -0400 Subject: [PATCH] [+] A3 P1 b, c --- assignments/a3/a3.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assignments/a3/a3.tex b/assignments/a3/a3.tex index 74bd250..ac79af6 100644 --- a/assignments/a3/a3.tex +++ b/assignments/a3/a3.tex @@ -4,7 +4,7 @@ \usepackage[margin=0.75in]{geometry} \title{CSC110 Assignment 3: Loops, Mutation, and Applications} -\author{TODO: FILL IN YOUR NAME HERE} +\author{Azalea Gui & Peter Lin} \date{\today} \begin{document} @@ -31,10 +31,10 @@ \end{tabular} \item[(b)] - TODO: Write your answer here. + Including a specific example as the doctest's expected output when a function is random isn't a good idea because the function's output will be different from the expected output each time it is executed. Since the doctest only verifies if the actual output matches the expected output, specifying a single random outcome as the expected output among many other possibilities will likely produce an error when running the test. \item[(c)] - TODO: Write your answer here. + For example, you can use $\texttt{words = \{'Hello': 1\}}$ as the words dictionary. In this case, \texttt{generate\_text\_uniform(words, 5)} has only one possible outcome, which is \texttt{'Hello Hello Hello Hello Hello'}. \end{enumerate} \item[2.]