"<p>In this video we are going to discover the conditional statements in python.We will implement these conditions win our program to show the mention after calcultating the average.</p> <p> </p> <pre> <code>dictMatieres = {"math":(9.0, 3), "info":(20, 2.75),"physique":(11.25, 4), "histoire":(1, 1), "arabe":(13.25, 2), "francais":(14.75, 2), "anglais":(15.25, 1)} # listCoefs= [3,2.75,4,1,2,2,1] # moyenne somme = (dictMatieres["math"][0] * dictMatieres["math"][1]) + (dictMatieres["info"][0] * dictMatieres["info"][1]) + (dictMatieres["physique"][0] * dictMatieres["physique"][1]) + (dictMatieres["histoire"][0] * dictMatieres["histoire"][1]) + (dictMatieres["arabe"][0] * dictMatieres["arabe"][1]) + (dictMatieres["francais"][0] * dictMatieres["francais"][1]) + (dictMatieres["anglais"][0] * dictMatieres["anglais"][1]) print("La somme est :") print(somme) sommeCoefs = dictMatieres["math"][1] + dictMatieres["info"][1] + dictMatieres["physique"][1] + dictMatieres["histoire"][1] + dictMatieres["arabe"][1] + dictMatieres["francais"][1] + dictMatieres["anglais"][1] moyenne = somme /sommeCoefs print("La moyenne est :") print(moyenne) # moyenne >= 18 => Excellent # moyenne >= 16 => Tres Bien # moyenne >= 12 => Bien # moyenne >= 10 => Passable # moyenne < 10 => Redouble # True False if(moyenne>=18): print('Excellent') elif(moyenne>=16): print('Tres Bien') elif(moyenne >=12): print('Bien') elif(moyenne >=10): print('Passable') else: print('Redouble') print('Fin programme')</code></pre>"