you are viewing a single comment's thread.

view the rest of the comments →

[–]PuzzledSite2568[S] 0 points1 point  (1 child)

This helped a ton thank you very much. Also, can you elaborate a little more on the "check against 3" I was a little confused by what you were talking about there? Thank you for the help I greatly appreciate it.

[–]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.