12457 - 3-3 Check Grades   

Description

Write a program to query a student's grades.

First, define three dictionaries in your code as follows:

python = {'Alex': 83, 'Harry': 77, 'Davy': 93, 'Lisa': 65, 'Sunday': 89}
algorithm = {'Lisa': 91, 'Andrew': 88, 'Kevin': 76}
os = {'Harry': 60, 'Louis': 100, 'Mike': 90, 'Lisa': 58}

Each dictionary represents a course (Python, Algorithm, OS) with the students and their grades in that course.
Your program should accept a student's name and report all of his or her grades in the order: Python, Algorithm, and OS.
 

If the student isn't taking any of the three courses, report that he or she is not taking any courses.

For example,

$ python3 grades.py

Mary

Mary is not taking any courses.

Input

A student's name.
 

Output

The result of query.

Note that when reporting the name of the course, you should use 'Python', 'Algorithm', or 'OS', instead of 'python', 'algorithm', or 'os'.

Sample Input  Download

Sample Output  Download

Tags

Review



Discuss