American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5PM – Python OOP – Latisha

June 18, 2022 @ 5:00 pm - 6:00 pm

Today We Do
  1. We review homework.
  2. Worked on Adventure Game
Homework
  1. Create a new file book.py and add a new class Book. Inside the class, add these attributes: name, author, publication_year
  2. Create a new file book_main.py and add a new class BookSystem.
  3. Inside BookSystem, create a dictionary book_dictionary.
  4. Inside BookSystem create a new method application_loop().
  5. This BookSystem will have the following features
Enter one of the following:
1. Add Book
2. List all books
3. Find book by name
4. List all books before year 2010
0. Exit
Please enter your selection: 1

ADD NEW BOOK
Enter book name: Chamber Of Secrets
Enter book author: JK Rowling
Enter publication year: 1998

Enter one of the following:
1. Add Book
2. List all books
3. Find book by name
4. List all books before year 2010
0. Exit
Please enter your selection: 2

LIST ALL BOOKS
Chamber Of Secrets by JK Rowling, published on 1998

Details

Date:
June 18, 2022
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights