csev / py4e

Web site for www.py4e.com and source to the Python 3.0 textbook

Home Page:http://www.py4e.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 5 Exercise 1 - "number" is underspecified

jodischneider opened this issue · comments

"Number" is underspecified in Chapter 5 Exercise 1. Should this say "integer"? (All the numeric input examples are integers)
Otherwise, if "float" is intended, the output should read:
16.0 3 5.333333333333333

I think 'number' is okay. This way it's not restricting the input to int. Either int / float input can be entered in the example code without changes as fval = float() makes it all the same.