Increasing Fruit

Our count_fruit function received a Fruit parameter and returned a Fruit result. And it gave back exactly the same amount. Now we’ll want to make a new, modified value. First, let’s see what we want our main function to look like:

Get hands-on with 1000+ tech skills courses.

Learn to code, grow your skills, and succeed in your tech interview