diff --git a/playground.py b/playground.py index 46c3fdb..1b04512 100644 --- a/playground.py +++ b/playground.py @@ -59,20 +59,20 @@ def sort(list, compare_func) -> []: def main(): - # book1 = Book(500, 29) - # book1.setPages(50) - # print("Book 1 has %d pages" % book1.getNoOfPages()) - # print("Book 1 weighs %d grams" % book1.getWeigt()) + book1 = Book(500, 29) + book1.setPages(50) + print("Book 1 has %d pages" % book1.getNoOfPages()) + print("Book 1 weighs %d grams" % book1.getWeigt()) - # book2 = Book(333, 50) - # print("Book 2 has %d pages" % book2.getNoOfPages()) - # book2.addPage("Page1") - # book2.addPage("Page2") - # book2.addPage("Page3") + book2 = Book(333, 50) + print("Book 2 has %d pages" % book2.getNoOfPages()) + book2.addPage("Page1") + book2.addPage("Page2") + book2.addPage("Page3") - # pages = book2.getPages() - # for page in pages: - # print(page) + pages = book2.getPages() + for page in pages: + print(page) numbers = [1, 5, 3, 7, 10, 9]