11 lines
183 B
Python
Executable File
11 lines
183 B
Python
Executable File
class Car:
|
|
pass
|
|
|
|
myCar = Car() # Create an empty employee record
|
|
|
|
# Fill the fields of the record
|
|
myCar.model = 'V 70'
|
|
myCar.brand = 'Volvo'
|
|
myCar.year = 2005
|
|
|
|
print(myCar.model) |