American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python OOP – Latisha

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

Today We Do
  1. We review homework.
Homework
  1. Finish last week homework.
  2. Create a new file book.py and add a new class Book. Inside the class, add these attributes: name, author, publication_year
  3. Create a new file book_main.py and add a new class BookSystem.
  4. Inside BookSystem, create a dictionary book_dictionary.
  5. Inside BookSystem create a new method application_loop().
  6. 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 11, 2022
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights