Affiliate link
Python - Classes/Objects
Python is an object oriented programming language.
Python - Classes
To define a class, use class keyword.
class YourClass:
a = 1
Python - Objects
c1 = YourClass()
print(c1.a)
Affiliate link
Affiliate link




