Commit 0a9abf6f authored by Raffaele Grosso's avatar Raffaele Grosso
Browse files

Clarify a sentence in the Python exercises paper

parent af788356
......@@ -133,8 +133,8 @@ Keywords like \texttt{if}, \texttt{else}, \texttt{while}, \texttt{for}, \texttt{
\Chapter{File I/O}
\begin{enumerate}[label=\textbf{\alph*)}]
\item Write a program reading a text from an input file and writing it to an output file after replacing newlines with spaces. The two file names are to be given as input.
\sitem Write a program that fills a dictionary with key-value pairs read from a first json file and writes out the dictionary to a second json file after having added or replaced a few entries according to input given by the user.
\Hint{Use the \texttt{dump} and \texttt{laod} functions provided by the \texttt{json} module.}
\sitem Save a dictionary (e.g. the one from \ref{Dictionaries}.\ref{birthmonth}) to a json file and write a program that fills a dictionary with key-value pairs read from the first json file and writes out the dictionary to a second json file after having added or replaced a few entries according to input given by the user.
\Hint{Use the \texttt{dump} and \texttt{load} functions provided by the \texttt{json} module.}
\end{enumerate}
\vspace{0.5cm}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment