The instructions are:
You have even more tools in your ex4_helper_functions.py file!
get_top_candies: This function is like a talent scout - it will find the candies whose popularity scores are above a certain level, “avg_popularity” (the average popularity you calculated in Exercise 3).
display_pretty_table: This one makes the results look extra nice.
and I got:
from ex4_helper_functions import get_top_candies, display_pretty_table
I get this:
TypeError Traceback (most recent call last) Cell In[27], line 7 1 ### START CODE HERE ### 2 3 # Import using the format “import file_name” 4 # Add your code here 6 from ex4_helper_functions import get_top_candies ----> 7 top_candies = get_top_candies(avg_popularity) 8 display_pretty_table(top_candies) 10 ### END CODE HERE ### TypeError: get_top_candies() missing 1 required positional argument: ‘avg’
Your function call passed only 1 parameter, it should be two. Here is an extract from the comment line: # Pass “candy_data” and “avg_popularity” to the “get_top_candies” function