- This event has passed.
5PM Python Level 1
July 20, 2019 @ 5:00 pm - 7:00 pm
- We reviewed our homework to make Car and Student classes.
- We went over Python dictionary.
- We went over Student Registration project.
- We used Student class
- We used Python Dictionary to easily find student by name and id
- Homework:
- Make sure you have added the feature where it can find student by ID.
- Change the program to have another feature which is to edit existing student. Look at below example:
-
What do you want to do? 1. Register Student 2. Find Student 3. Edit Existing Student 4. Quit Enter your selection: 1 Enter a new student full name: Gamas Chang What grade is he in: 10 What is his phone: 626-532-7844 You have successfully registered: Student ID: 1, name: Gamas Chang, grade: 10, phone: 626-532-7844 What do you want to do? 1. Register Student 2. Find Student 3. Edit Existing Student 4. Quit Enter your selection: 3 Enter Student ID: 1 Student ID: 1, name: Gamas Chang, grade: 10, phone: 626-532-7844 What information you want to change? 1. Phone 2. Grade Enter your selection: 1 Please enter a new phone number: 888-888-8888 You have successfuly changed the student's phone: Student ID: 1, name: Gamas Chang, grade: 10, phone: 888-888-8888