Created
November 13, 2020 12:28
-
-
Save betterdatascience/9d6b53b4769e4b49da9da477a9002fe3 to your computer and use it in GitHub Desktop.
002_oop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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