Closed reachtarunhere closed 3 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
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