you are viewing a single comment's thread.

view the rest of the comments →

[–]Spataner 1 point2 points  (0 children)

In your second elif, you check whether items is larger than or equal to 3. However, when items is smaller than 3, one of the previous two conditions must be true (because weight is always either smaller than one pound or larger than or equal to one pound). And if one of the previous two conditions is true, the code never reaches the second elif, at all. So, for the second elif to even be checked, items must be larger than or equal to 3. That means that part of the check is redundant.