Skip to content

Instantly share code, notes, and snippets.

@betterdatascience
Created November 13, 2020 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betterdatascience/9d6b53b4769e4b49da9da477a9002fe3 to your computer and use it in GitHub Desktop.
Save betterdatascience/9d6b53b4769e4b49da9da477a9002fe3 to your computer and use it in GitHub Desktop.
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