Question: Creating a default pizza < _ _ main _ _ . Pizza object at 0 x 7 8 5 d 0 f 0 6 c

Creating a default pizza
<__main__.Pizza object at 0x785d0f06c940>
Adding topping: ['cheese', 'olive']
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in ()
4 toppings = 'cheese olive'.split()
5 print(f'
Adding topping: {toppings}')
---->6 p.add(toppings=toppings)
7 print(p)
8 print(f'
Creating a new pizza')
AttributeError: 'Pizza' object has no attribute 'add'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!