class Bulletin: 
    def __init__(self,maths,physique,info):
        self.maths = maths
        self.physique = physique
        self.info = info 

    def moyenne(self,notes):
        m = 0
        for i in range(3):
            m += notes[i]
        return (m/3)

    def moyenne_generale(self,matieres):
        m_g = 0
        for i in (self.maths,self.physique,self.info):
            m_g += Bulletin.moyenne[i]

    def mention(self):
        m = Bulletin.moyenne_generale()
        if(m<10):
            return("Nullos")
        elif(r>=10 and r<12):
            return("Passable")
        elif(r>=12 and r<14):
            return("Assez Bien")
        elif(r>=14 and r<16):
            return("Bien")
        else:
            return("Très Bien")

class Etudiant: 
    def __init__(self,nom,prenom,numero):
        self.nom = nom
        self.prenom = prenom
        self.numero = numero
        self.bullentin = Bulletin()

class Promotion:
    def __init__(self,nom):
        self.nom = nom
        self.etudiant = []

def menu(promo):
    choix = ""
    while choix != "7":
        print("PROMO : \n",promo.nom)
        print("----------------- \n")
        print("1. Ajouter un etudiant")
        print("2. Afficher la promo")
        print("3. Rechercher le major d'une matière")
        print("4. Mettre à jour le dossier d'un étudiant")
        print("5. Supprimer un étudiant")
        print("6. Afficherles statistiques")
        print("7. Quitter")
        choix = input("Votre choix:")
        if choix == "1" :
            ajouter_etudiant(promo)
        elif choix == "2":
            afficher_promo(promo)
        elif choix == "3":
            rechercher_major_menu(promo)
        elif choix == "4":
            maj_dossier_menu(promo)
        elif choix == "5":
            supprimer_etu_menu(promo)
        elif choix == "6":
            afficher_stats_menu(promo)
        elif choix == "7":
            print("Fin du programme")
        else:
            print("Choix invalide")

promo = Promotion("A3")
menu(promo)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: