Skip to content

Commit

Permalink
specifying the use of random.choice and printable characters only (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
madvid committed Apr 7, 2022
1 parent 2c023b6 commit 3f8bd6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions module01/subject/en.subject.tex
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ \chapter{Exercise 03}
\turnindir{ex03}
\exnumber{03}
\exfiles{generator.py}
\exauthorize{random.randint}
\exforbidden{random.shuffle}
\exauthorize{random.randint, random.choice}
\exforbidden{random.shuffle, random.sample}
\makeheaderfilesforbidden


Expand All @@ -601,7 +601,7 @@ \section*{Objective}
% ================================= %
\section*{Instructions}
% --------------------------------- %
Code a function called \texttt{generator} that takes a text as input, uses the string
Code a function called \texttt{generator} that takes a text as input (only printable characters), uses the string
parameter \texttt{sep} as a splitting parameter, and \texttt{yield}s the resulting substrings.

The function can take an optional argument.
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.0.6
v3.0.7

0 comments on commit 3f8bd6d

Please sign in to comment.