Skip to content

Commit 3f8bd6d

Browse files
authored
specifying the use of random.choice and printable characters only (#233)
1 parent 2c023b6 commit 3f8bd6d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

module01/subject/en.subject.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
605605
parameter \texttt{sep} as a splitting parameter, and \texttt{yield}s the resulting substrings.
606606

607607
The function can take an optional argument.

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.0.6
1+
v3.0.7

0 commit comments

Comments
 (0)