the thing you have written is correct on its own, but you need to be writing the body of the add_expense function, so you need to be writing inside the function
@ShellPy Great job so far, and welcome to the fCC community.
You are half way there. You’re almost done, you just need to place the append() method call inside the function.
Currently, you have:
However, this line needs to be within the function to work correctly. Here’s what you can do:
Replace “pass” (the pass statement) with your method call that you figured out. “pass” is just a code placeholder.
Focus on indentation. Indentation is important in Python. Improper indentation makes it call outside of the function scope, so be careful about this in the future to prevent errors.