- This event has passed.
5 PM – Python OOP – Gamas
September 17 @ 5:00 pm - 6:00 pm
Today We Did
- We continued with School System project
- We added “Add New Student”, “List all students” and “Find Student” feature.
Homework
- In “Find Student”, when user enter name that is not in dictionary, it will now throw an error. something like KeyError. Add code to check if the name exists in dictionary before getting the Student object from dictionary.
- Also Add a new menu (“4. List all students older than 14”) that will list all students older than 14 years old like below
-
SCHOOL SYSTEM 1. Add New Student 2. List All Students 3. Find Student 4. List all students older than 14 Please make your selection (Enter 'exit' to quit): 1 ADD NEW STUDENT Student name: Gamas Student age: 15 Student phone: 777-777-7777 SCHOOL SYSTEM 1. Add New Student 2. List All Students 3. Find Student 4. List all students older than 14 Please make your selection (Enter 'exit' to quit): 1 ADD NEW STUDENT Student name: Elizabeth Student age: 14 Student phone: 888-888-8888 SCHOOL SYSTEM 1. Add New Student 2. List All Students 3. Find Student 4. List all students older than 14 Please make your selection (Enter 'exit' to quit): 2 LIST OF STUDENT Gamas is 15 years old with a phone number of 777-777-7777 Elizabeth is 14 years old with a phone number of 888-888-8888 SCHOOL SYSTEM 1. Add New Student 2. List All Students 3. Find Student 4. List all students older than 14 Please make your selection (Enter 'exit' to quit): 4 LIST ALL STUDENTS OLDER THAN 14 Gamas is 15 years old with a phone number of 777-777-7777 SCHOOL SYSTEM 1. Add New Student 2. List All Students 3. Find Student 4. List all students older than 14 Please make your selection (Enter 'exit' to quit):