Issue with "Candy Analysis"

**Hi, In the “Candy Analysis”, **

**I initially code run the code properly down to the section below. How when stepping the code from the beginning, I always get the same error. **

NameError Traceback (most recent call last) Cell In[16], line 5 1

** ### START CODE HERE ### **
**2 **
**3 **
**# Access the “get_top_candies” function in “ex4_helper_functions” **
**4 **
**# Pass “candy_data” and “avg_popularity” to the “get_top_candies” function ----> **
**5 top_candies = get_top_candies(candy_data, avg_popularity) **
**7 **
**### END CODE HERE ### **
**8 **
**9 **
**### Display the “top_candies” list 10 ex4_helper_functions.display_pretty_table(top_candies) **
NameError: name ‘get_top_candies’ is not defined

Hi @Jonas_Fritzin ,

When calling the function get_top_candies(), it should be prefixed with where that function is located, in this case, it is ex4_helper_functions, follows by a dot. An example is given in displaying the to_candies list of 10.

Thanks @Kic - now it works! :slight_smile: