8000 attributes · ammarlodhi255/python-src@bbfcb6b · GitHub
[go: up one dir, main page]

Skip to content

Commit bbfcb6b

Browse files
committed
attributes
1 parent 239c430 commit bbfcb6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

OOP/classes_and_instances.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ class Car:
77
car_1.color = 'red'
88
car_2.color = 'green'
99

10+
print(car_1.color, car_2.color)

0 commit comments

Comments
 (0)
0