Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vehicle:
- def __init__(self, wheels, lights):
- self.numwheels = wheels
- self.numlights = lights
- def statsMe(self):
- print 'Wheels: ',self.numwheels
- print 'Headlights: ',self.numlights
- ducati = Vehicle(2,1)
- ducati.statsMe()
- rolls = Vehicle(4,2)
- rolls.statsMe()
Add Comment
Please, Sign In to add comment