Adding Chapter 3 files
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user