reuven / python-workout

Files for the Python Workout book
230 stars 147 forks source link

Chapter 1 Exercise 2 Beyond 4 #4

Closed reachtarunhere closed 3 years ago

reachtarunhere commented 4 years ago

The code doesn't run because of "in_instable" typo in the line below:

https://github.com/reuven/python-workout/blob/f87a1fee2e1e2396af5a2a408d36fc8b91d63683/ch01-numbers/e02b4_sum_intable.py#L20

Further, even if we correct the typo sum_intable([42, 1]) would result in 2 instead of 43 because everything is being typecasted to an int from a bool