American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM – Python OOP – Gamas

June 20 @ 3:00 pm - 4:00 pm

Today We Did
  1. We reviewed more dictionary example
  2. We created a system that can keep track of student’s score with dictionary.
Homework
  1. Inside your existing june_13_student_score.py
  2. Add code that will list all students scores when user enter “3”:
  3. Examples
  4. Menu
    1. Add student name
    2. Find student score
    3. Print all scores
    Enter 'exit' to quit: 1
    
    ENTER STUDENT SCORE
    Enter student name: Alyssa
    Enter student score: 100
    Alyssa with score 100 has been added to the system
    
    Menu
    1. Add student name
    2. Find student score
    3. Print all scores
    Enter 'exit' to quit: 1
    
    ENTER STUDENT SCORE
    Enter student name: Gamas
    Enter student score: 90
    Gamas with score 90 has been added to the system
    
    Menu
    1. Add student name
    2. Find student score
    3. Print all scores
    Enter 'exit' to quit: 1
    
    ENTER STUDENT SCORE
    Enter student name: John
    Enter student score: 80
    John with score 80 has been added to the system
    
    Menu
    1. Add student name
    2. Find student score
    3. Print all scores
    Enter 'exit' to quit: 3
    
    ALL SCORES
    Alyssa score is 100
    Gamas score is 90
    John score is 80
    
    Menu
    1. Add student name
    2. Find student score
    3. Print all scores
    Enter 'exit' to quit:

Details

Date:
June 20
Time:
3:00 pm - 4:00 pm