American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python OOP – Darin (William Sub)

June 18 @ 6:00 pm - 7:00 pm

What We Did Today:

  1. Continued School System
  2. Implemented the listing methods for both the student and teacher
  3. Converted the main.py file into a class called SchoolSystem

Homework:

Continue working on SchoolSystem, but first take the notes from google drive (click here) to make sure your code is working properly after converting the main.py into a class:

  1. Add the following options to the menu:
    • 3. Find student
    • 6. Find teacher
    • (See example output for the output of these methods)
  2. For each find method,

Example output:

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 1

ADD NEW STUDENT
Enter student's name: Darin
Enter student's age: 20
Enter student's grade: 12
You have added a new student Darin into the system.

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 1

ADD NEW STUDENT
Enter student's name: Parker
Enter student's age: 12
Enter student's grade: 7
You have added a new student Parker into the system.

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 4

ADD NEW TEACHER
Enter teacher's name: Darin
Enter teacher's age: 21
Enter teacher's subject expertise: Math
You have added a new teacher Darin into the system.

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 4

ADD NEW TEACHER
Enter teacher's name: Gary
Enter teacher's age: 20
Enter teacher's subject expertise: Chemistry
You have added a new teacher Gary into the system.

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 3

FIND STUDENT
Enter student name that you want to find: Darin
Darin - 20 years old - grade 12 

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 3

FIND STUDENT
Enter student name that you want to find: bob
We couldn't find Bob in our Student list.

Select one of the following options:
    1. Add student
    2. List all students (list)
    3. Find student
    4. Add new teacher
    5. List all teachers (list)
    6. Find teacher
    7. List all teachers (dictionary)
    8. List all students (dictionary)
Enter your selection (enter "exit" to quit): 6

FIND TEACHER
Enter teacher name that you want to find: Darin
Darin - 21 years old - teaches Math

 

Notes:

If you have any questions, you can email me at ddjapri@ayclogic.com !!

Details

Date:
June 18
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights