Solution with same error

In 9. Challenge: Summaring Art Work Data

I got always the same error. I compared it to the solution and teste as well the solution, the same error occurred.

gender_freq = {}

for row in moma:
    gender = row[5]
    if gender not in gender_freq:
        gender_freq[gender] = 1
    else:
        gender_freq[gender] += 1

for gender, num in gender_freq.items():
    template = "There are {n:,} artworks by {g} artists"
    print(template.format(g=gender, n=num))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-8b5664eeb8f8> in <module>
     10 for gender, num in gender_freq.items():
     11     template = "There are {n:,} artworks by {g} artists"
---> 12     print(template.format(g=gender, n=num))

TypeError: 'str' object is not callable

What is the problem?

Hi c.weisstanner

Your code is working fine for me and I got the expected output.
Clean your cache or try it in a new browser window.

Thanks.

Ok. Thank you, I will Texte that.