« All Events
3 PM – Python OOP – Allison
July 9 @ 3:00 pm - 4:00 pm
What We Did Today
- Continued our SchoolSystem project
Homework
- Make sure to do the code in your SchoolSystem project
- When you’re done with the homework, upload main.py but rename it to Jun9_main.py in your Google Drive (don’t rename it in PyCharm!)
- In your main.py file:
- If the user enters option 2, print out everything in the student list
- If the user enters option 3, ask the user for the student’s name. Find the student in the student list, and print out the info like ({name} – {age} years old – grade {grade}).
- If no student with that name exists, print: “We couldn’t find {student’s name} in our student list”
- You can skip if the user enters option 4 and 5 for now.
- If the user enters option 6, ask the user for input on any info needed to create a teacher object. Create the teacher object, and add it to teacher_list.
- Make sure to create an empty teacher_list (in the initialize function)
- Other
- Add any missing parts of your class notes from our class notes (see link at bottom)
- Review the homework answers (see link at bottom)
Notes
- You can reach out via allison@ayclogic.com if you have any questions.
- Class notes and previous homework answers can be found here: Link to Google Drive