I'm trying to create a function that prints out just the value of the key given in the parameter. But it isn't quite doing what I want it to do. Please have a look at my code and see where I'm wrong? Thanks
list = {
    "David": 42,
    "John": 11,
    "Jack": 278
}
def get_marks(student_name):
    for marks in list.items():
        print(marks)
get_marks("David")