dic = {
    'Java': 90,
    'C++': 97,
    'Python': 98
}

def get_max_score(dic:dict):
    max_score = 0
    max_course = ''
    for key, value in dic.items():
        if value > max_score:
            max_score = value
            max_course = key
    print(max_course, max_score)
get_max_score(dic)