Dictionary<string, List> notasAlunos = new Dictionary<string, List> { { "Glenda Delfy", new List { 19, 15, 7, 5 } }, { "Rhany Oliveira ", new List { 15, 5, 20, 4 } }, { "Jasmin Shaday", new List { 0, 8, 2, 4, 6 } }, { "Matheus", new List { 10, 9 , 6, 4, 10 } }, }; foreach (var aluno in notasAlunos) { double soma = 0; for (int i = 0; i < aluno.Value.Count; i++) { soma += aluno.Value[i]; } double media = soma / aluno.Value.Count; Console.WriteLine($"Média de {aluno.Key}: {media}"); }