Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
002_oop
class Car:
def __init__(self, brand, color, plate):
self.brand = brand
self.color = color
self.plate = plate
car = Car(brand='Audi', color='Black', plate='XYXY-123')
print(car)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment