Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
brian smith committed Jun 21, 2015
1 parent ca763c4 commit dd88310
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dog_class.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Dog:

def __init__(self, name):
self.name = name
self.tricks = [] # creates a new empty list for each dog

def add_trick(self, trick):
self.tricks.append(trick)

0 comments on commit dd88310

Please sign in to comment.