This is the code that I have written so far. Step 7 asks that pizza_and_prices be printed out. Running the above code throws a TypeError: ‘tuple’ object is not callable. Any advice because this is driving me crazy.
This isn’t right. print = ("We sell “, num_pizzas, " different kinds of pizza!”)
Because of the = , the above is interpreted as assigning a tuple to print. In Python 2, print was a reserved keyword, so the above statement would have caused an error. But in Python 3, print is no longer a reserved keyword and is instead a built-in function.
Since print isn’t reserved, your statement assigns a tuple to print.
Later when you try to make the call print(pizza_and_prices)
you get the error: TypeError: 'tuple' object is not callable