I created a function meant to get goals from the user and store them in a dictionary. I then had to make a function to collect the actual progess that users made toward that goal as data and store that in a seperate dinctionary. I made another function meant to compare the two and determine how many days of the week the user meet their specified goal. However, when I run the program, its telling me that the dictionary is undefined even though I passed it into the function. Any help is greatly appreciated
I passed the dictionary into the function as a parameter like normal def compare_goals(goals,data)
enter image description here
New contributor