We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85cabee + 06bbb60 commit 1b6628cCopy full SHA for 1b6628c
1 file changed
examples/08_classes/class_instance_attributes.py
@@ -1,3 +1,8 @@
1
+# Define and access instance attributes
2
+# ------------------------------------------------------------------------------
3
+# Instance attributes are defined in the __init__ method. They store data
4
+# unique to each object and can be accessed through the instance of the class.
5
+
6
class Person(object):
7
8
def __init__(self):
0 commit comments