#CHAPITRE 2 TD1
#M1
def afficher_bilan(nom,note1,note2):
moyenne=(note1+note2)/2
print(nom,":", moyenne)
if moyenne >= 10 :
print("matière validée")
afficher_bilan("ben",10,11)
afficher_bilan("alice",8,11)
#A1
def temps_trajet(distance, vitesse):
return distance / vitesse
#a)
print(temps_trajet(150,100))
#b)
def afficher_arrivees():
for vitesse in range(100,301,50):
duree = temps_trajet(150,vitesse)
total_minutes = 9 * 60 + round(60*duree)
h = total_minutes // 60
m = total_minutes % 60
print(f"Vitesse:{vitesse}, heures d'arrivée{h}:{m}")
afficher_arrivees()
#M2
#a)
def cube(x):
return x**3
#b)
def maximun(n1,n2,n3) :
max = n1
if
To embed this project on your website, copy the following code and paste it into your website's HTML: