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}
588
588
\turnindir {ex03}
589
589
\exnumber {03}
590
590
\exfiles {generator.py}
591
- \exauthorize {random.randint}
592
- \exforbidden {random.shuffle}
591
+ \exauthorize {random.randint, random.choice }
592
+ \exforbidden {random.shuffle, random.sample }
593
593
\makeheaderfilesforbidden
594
594
595
595
@@ -601,7 +601,7 @@ \section*{Objective}
601
601
% ================================= %
602
602
\section* {Instructions }
603
603
% --------------------------------- %
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
605
605
parameter \texttt {sep } as a splitting parameter, and \texttt {yield }s the resulting substrings.
606
606
607
607
The 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