Question: class Truck: def _ _ init _ _ ( self ) : self.cargo = [ ] t 1 = Truck ( ) t 2 =

class Truck:
def __init__(self):
self.cargo =[]
t1= Truck()
t2= Truck()
t1.cargo.append("Apples")
t1.cargo.append("Bananas")
t2.cargo.append("Figs")
t1.cargo.append("Lemons")
t2.cargo.append("Mangos")
t2.cargo.append("Oranges")
t1.cargo.append("Tangerines")
Question 10 options:
['Apples', 'Bananas', 'Figs', 'Lemons', 'Mangos', 'Oranges', 'Tangerines']
['Apples', 'Bananas', 'Lemons', 'Tangerines']
[]
['Figs', 'Mangos', 'Oranges']

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 Programming Questions!