solve 8.8.1
This commit is contained in:
parent
e1e8b21904
commit
7badebfecb
|
@ -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)
|
Loading…
Reference in New Issue