File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -588,8 +588,8 @@ \chapter{Exercise 03}
588588\turnindir {ex03}
589589\exnumber {03}
590590\exfiles {generator.py}
591- \exauthorize {random.randint}
592- \exforbidden {random.shuffle}
591+ \exauthorize {random.randint, random.choice }
592+ \exforbidden {random.shuffle, random.sample }
593593\makeheaderfilesforbidden
594594
595595
@@ -601,7 +601,7 @@ \section*{Objective}
601601% ================================= %
602602\section* {Instructions }
603603% --------------------------------- %
604- Code a function called \texttt {generator } that takes a text as input, uses the string
604+ Code a function called \texttt {generator } that takes a text as input (only printable characters) , uses the string
605605parameter \texttt {sep } as a splitting parameter, and \texttt {yield }s the resulting substrings.
606606
607607The function can take an optional argument.
Original file line number Diff line number Diff line change 1- v3.0.6
1+ v3.0.7
You can’t perform that action at this time.
0 commit comments