week-8 #13

Merged
Kenwood merged 4 commits from week-8 into master 2021-02-27 13:10:58 -05:00
1 changed files with 15 additions and 0 deletions
Showing only changes of commit 7badebfecb - Show all commits

15
8/8.8/8.8.1/main.py Normal file
View File

@ -0,0 +1,15 @@
class CarRecord:
def __init__(self):
self.year_made = 0
self.car_vin = ''
# FIXME add __str__()
def __str__(self):
return'Year: {0}, VIN: {1}'.format(self.year_made, self.car_vin)
my_car = CarRecord()
my_car.year_made = int(input())
my_car.car_vin = input()
print(my_car)