Adding Chapter 3 files

This commit is contained in:
muassif
2021-01-16 15:14:59 +04:00
committed by GitHub
parent abab477fe1
commit d78cf1f8e9
17 changed files with 402 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#snippet.py
class Name:
def __init__(self):
self.first = "John"
class Name:
#class attributes
c_name_length = 80
#constructor
def __init__(self, first, last):
self.i_first = first #i_first is an instance attribute
self.i_last = last #i_last is an instance attribute