notas_por_materias = { "Matematica" : 7,
                       "Portugues" : 8,
                       "Historia" : 10 }
print (f"Sua nota em Matematica, foi de {notas_por_materias['Matematica']}")

for key, value in notas_por_materias.items() :
    print (f"Sua nota em {key}, foi de {value}")

#https://pt.stackoverflow.com/q/405680/101