Update DocstringFixpoint.ipynb

This commit is contained in:
Peter Norvig
2023-03-07 13:14:29 -08:00
committed by GitHub
parent 4fbd99d262
commit 3a96f927fa

View File

@@ -25,10 +25,10 @@
"\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\n",
"of numbers representing daily rainfall amounts as entered by a user. The list may contain the number -999\n",
"indicating the end of the data of interest. Produce\n",
"the average of the non-negative values in the list up to\n",
"- 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",
"\n",
"We start by writing a function prototype containing the complete problem statement as the docstring:"