fluentpython/example-code

bug in bulk_item_promo

sigai opened this issue · 1 comments

sigai commented

discount += item.total() * .1

+= should be =
if there were 10 item.quantity that bigger than 20 the total would be 0!

sigai commented

sorry my mistake...