8000 class without a body · ammarlodhi255/python-src@d0c8f80 · GitHub
[go: up one dir, main page]

Skip to content

Commit d0c8f80

Browse files
committed
class without a body
1 parent f875a0a commit d0c8f80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

OOP/classes_and_instances.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Car:
2+
pass
3+
4+
car_1 = Car()
5+
car_2 = Car()
6+
7+
car_1.color = 'red'
8+
car_2.color = 'green'
9+

0 commit comments

Comments
 (0)
0