American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM – Python OOP – Gamas

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

Today We Did
  1. We learned when to use Python Dictionary.
  2. We did phone number search program using dictionary.
Homework
  1. Create june_13_student_score.py
  2. Use dictionary and create a program like below. You need to know how to insert to the dictionary and how to get from dictionary.
  3. Menu
    1. Enter student score
    2. Find student score
    Enter 'exit' to quit: 1
    
    ENTER STUDENT SCORE
    Enter student name: Alyssa
    Enter student score: 90
    Alysa with score 90 has been added to the system
    
    Menu
    1. Enter student score
    2. Find student score
    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. Enter student score
    2. Find student score
    Enter 'exit' to quit: 2
    
    FIND STUDENT SCORE
    Enter student name: Gamas
    Gamas cannot be found in our system. Please try other name.
    
    Menu
    1. Enter student score
    2. Find student score
    Enter 'exit' to quit: 1
    
    FIND STUDENT SCORE
    Enter student name: John
    John's score is 80.
    
    Menu
    1. Enter student score
    2. Find student score
    Enter 'exit' to quit: 1
    
    FIND STUDENT SCORE
    Enter student name: alySSa
    alySSa's score is 90.
    
    Menu
    1. Enter student score
    2. Find student score
    Enter 'exit' to quit: exit
    Bye bye

Details

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