publish solutions

This commit is contained in:
2025-02-17 16:52:06 +01:00
parent e4fc3e18b1
commit 64b8207dbb
12 changed files with 197 additions and 17 deletions

View File

@@ -15,3 +15,19 @@ students = {
'Histoire': 78
}
}
name = input("Entrez le nom de l'étudiant : ")
if name in students:
total = 0
print(f"Notes de {name}:")
for i in students[name]:
note = students[name][i]
total += note
print(i, ":", note)
print(f"Moyenne de {name} : {total/len(students[name])}")
else:
print("L'étudiant", name, "n'existe pas.")