-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMS1.py
More file actions
33 lines (28 loc) · 716 Bytes
/
MS1.py
File metadata and controls
33 lines (28 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class Car:
color = "Red"
model = "Stonic"
manu = "Kia"
#default
print(f"Color: {Car.color} \nModel: {Car.model} \nManufacturer: {Car.manu}")
print("")
#car1
Car1 = Car()
Car1.color = "Blue"
Car1.model = "Civic"
Car1.manu = "Honda"
print(f"Color: {Car1.color} \nModel: {Car1.model} \nManufacturer: {Car1.manu}")
print("")
#car2
Car2 = Car()
Car2.color = "Yellow"
Car2.model = "Raize"
Car2.manu = "Toyota"
print(f"Color: {Car2.color} \nModel: {Car2.model} \nManufacturer: {Car2.manu}")
print("")
#car3
Car3 = Car()
Car3.color = "Green"
Car3.model = "Jimmy"
Car3.manu = "Suzuki"
print(f"Color: {Car3.color} \nModel: {Car3.model} \nManufacturer: {Car3.manu}")
print("")