From 7badebfecb5296924ca58d8801e445eb87c8514a Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sat, 27 Feb 2021 12:51:15 -0500 Subject: [PATCH] solve 8.8.1 --- 8/8.8/8.8.1/main.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 8/8.8/8.8.1/main.py diff --git a/8/8.8/8.8.1/main.py b/8/8.8/8.8.1/main.py new file mode 100644 index 0000000..6760e74 --- /dev/null +++ b/8/8.8/8.8.1/main.py @@ -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)