Build a Kitchen Inventory Tracker - Step 10

Tell us what’s happening:

I am running into a wall..
the error message states that I should call the use_eggs function and pass available_eggs and 1 as arguments i believe that i did that where am I making my mistake?

Your code so far

available_eggs = 1
available_flour = 2
available_sugar = 3

def check_kitchen_stock():
    total_items = available_eggs + available_flour + available_sugar
    print(f'The kitchen has {total_items} total items:')
    print(f'- {available_eggs} eggs')
    print(f'- {available_flour} flour')
    print(f'- {available_sugar} sugar')

check_kitchen_stock()

def use_eggs(available_eggs, eggs_to_use):
    if eggs_to_use > available_eggs:
        print('The kitchen does not have enough eggs.')
        return available_eggs

    print(f'{eggs_to_use} egg(s) used out of {available_eggs} available.')
    return available_eggs - eggs_to_use

# User Editable Region
    def use_eggs(available_eggs=1):
        print(use_eggs)
        calculate_sum(use_eggs)
# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36 Edg/154.0.0.0

Challenge Information:

Build a Kitchen Inventory Tracker - Step 10

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-kitchen-inventory-tracker/6a3e6fd08125dfa615cb431b.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @teresaalexander45

You are not asked to write a function definition.

For this step you are asked to call an existing function, use_eggs.

Pass it two arguments.

Happy coding