diff --git a/Start/Ch 1/definition_start.py b/Start/Ch 1/definition_start.py index c519fd0..549b8e4 100644 --- a/Start/Ch 1/definition_start.py +++ b/Start/Ch 1/definition_start.py @@ -3,9 +3,16 @@ # TODO: create a basic class - +class Book: + def __init__(self, title): + self.title = title # TODO: create instances of the class +book1 = Book("Seven Pillars of Wisdom") +book2 = Book("Lord of the Rings") - -# TODO: print the class and property +# TODO: print the class object and property +print(book1) +print(book1.title) +print(book2) +print(book2.title) \ No newline at end of file