American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4:30 PM – Python OOP – Roland

March 28 @ 4:30 pm - 5:30 pm

Gamas Sub

Today We Did
  1. We started LibrarySystem project.
  2. We created Book class.
  3. We added add_book and list_all_books.
Homework
  1. Continue with LibrarySystem project
  2. Add codes to enable
    1. find book (by name). Use book.get_info() to display the book info.
    2. list all old books. This is all books whose year is less than 2000.
  3. Please look at below options
    1. Add book
    2. List all books
    3. Find book by name
    4. Find book by id
    5. List all old books
    Enter your selection. Enter 'quit' to exit: 1
    
    ADD NEW BOOK
    Enter book title: Lord Of The Rings
    Enter book author: JRR Tolkien
    Enter publish year: 1954
    Enter book id: ABC1
    You have added Lord Of The Rings book to our library.
    
    Please look at below options
    1. Add book
    2. List all books
    3. Find book by name
    4. Find book by id
    5. List all old books
    Enter your selection. Enter 'quit' to exit: 1
    
    ADD NEW BOOK
    Enter book title: Lightning Thief
    Enter book author: Rick Riordan
    Enter publish year: 2005
    Enter book id: BCD2
    You have added Lightning Thief book to our library.
    
    Please look at below options
    1. Add book
    2. List all books
    3. Find book by name
    4. Find book by id
    5. List all old books
    Enter your selection. Enter 'quit' to exit: 3
    
    FIND BOOK
    Enter book title that you want to find: Eugene
    We couldn't find Eugene in our Book list.
    
    Please look at below options
    1. Add book
    2. List all books
    3. Find book by name
    4. Find book by id
    5. List all old books
    Enter your selection. Enter 'quit' to exit: 3
    
    FIND BOOK
    Enter book title that you want to find: Lightning Thief
    
    Lightning Thief (BCD2) by Rick Riordan published on 2005
    
    Please look at below options
    1. Add book
    2. List all books
    3. Find book by name
    4. Find book by id
    5. List all old books
    Enter your selection. Enter 'quit' to exit: 5
    
    LIST ALL OLD BOOKS
    Lord Of The Rings (ABCD1) by JRR Tolkien published on 1954

Details

Date:
March 28
Time:
4:30 pm - 5:30 pm
Verified by MonsterInsights