+ 3
Why( 'TypeError:-' list object is not callable) showing up here when I am trying to print pizza.toppings()
3 Answers
+ 4
Last line is wrong, pizza.toppings is not a function so you must remove the parenthesis:
Also you were calling pizza() instead of print().
print(pizza.toppings)
+ 1
Adding onto what Maz said, here's the modified code so you can look at it side by side in comparison:
https://code.sololearn.com/cOSNXNaL7Z9m/?ref=app
0
Thanks for the help..got itđđ