Add commented code again
This commit is contained in:
parent
399a18ec32
commit
ed5f250696
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user