Update DocstringFixpoint.ipynb
This commit is contained in:
parent
3a96f927fa
commit
9f6b8db91a
@ -25,11 +25,11 @@
|
||||
"\n",
|
||||
"The \"Rainfall Problem\" has been used to explore the ways that novices address a programming problem. We will use [Kathi Fisler](https://cs.brown.edu/~kfisler)'s [version](https://cs.brown.edu/~kfisler/Pubs/icer14-rainfall/) of the problem:\n",
|
||||
"\n\n",
|
||||
"- Design a program called **rainfall** that consumes a list ",
|
||||
"- *Design a program called **rainfall** that consumes a list ",
|
||||
"of numbers representing daily rainfall amounts as entered by a user. The list may contain the number -999 ",
|
||||
"indicating the end of the data of interest. Produce ",
|
||||
"the average of the non-negative values in the list up to ",
|
||||
"the first -999 (if it shows up). \n",
|
||||
"the first -999 (if it shows up).* \n",
|
||||
"\n",
|
||||
"We start by writing a function prototype containing the complete problem statement as the docstring:"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user