[+] A3 P1 b, c

This commit is contained in:
Hykilpikonna
2021-10-23 00:40:45 -04:00
parent 9ac593288d
commit afbe583042
+3 -3
View File
@@ -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.]