Update app.py
Browse files
app.py
CHANGED
|
@@ -19,18 +19,19 @@ Juste la moyenne trimestrielle ohhhh pas plus.
|
|
| 19 |
description_r = """ En cours.... mais en vérité tout dépendra de mon humeur........ """
|
| 20 |
|
| 21 |
def calcul(
|
| 22 |
-
math, francais, physique, svt, philo, documentation, thea, anglais, hist, espagnol
|
| 23 |
):
|
| 24 |
math = math * 5
|
| 25 |
francais = francais * 3
|
| 26 |
physique = physique * 4
|
| 27 |
svt = svt * 3
|
| 28 |
philo = philo * 2
|
| 29 |
-
documentation = documentation *
|
| 30 |
thea = thea * 3
|
| 31 |
anglais = anglais * 2
|
| 32 |
hist = hist * 3
|
| 33 |
espagnol = espagnol * 2
|
|
|
|
| 34 |
conduite = 14 * 1
|
| 35 |
|
| 36 |
# Collectez les données des matières dans un tableau
|
|
@@ -40,11 +41,12 @@ def calcul(
|
|
| 40 |
["Physique", physique/4],
|
| 41 |
["SVT", svt/3],
|
| 42 |
["Philo", philo/2],
|
| 43 |
-
["Documentation", documentation/
|
| 44 |
["Théâtre", thea/3],
|
| 45 |
["Histoire", hist/3],
|
| 46 |
["Anglais", anglais/2],
|
| 47 |
["Espagnol", espagnol/2],
|
|
|
|
| 48 |
["Conduite", conduite/1],
|
| 49 |
]
|
| 50 |
|
|
@@ -64,9 +66,10 @@ def calcul(
|
|
| 64 |
+ hist
|
| 65 |
+ anglais
|
| 66 |
+ espagnol
|
|
|
|
| 67 |
+ conduite
|
| 68 |
)
|
| 69 |
-
r = total /
|
| 70 |
print(f"Moyenne : {matha.trunc(r * 100) / 100}")
|
| 71 |
return matha.trunc(r * 100) / 100
|
| 72 |
|
|
|
|
| 19 |
description_r = """ En cours.... mais en vérité tout dépendra de mon humeur........ """
|
| 20 |
|
| 21 |
def calcul(
|
| 22 |
+
math, francais, physique, svt, philo, documentation, thea, anglais, hist, espagnol,eps
|
| 23 |
):
|
| 24 |
math = math * 5
|
| 25 |
francais = francais * 3
|
| 26 |
physique = physique * 4
|
| 27 |
svt = svt * 3
|
| 28 |
philo = philo * 2
|
| 29 |
+
documentation = documentation * 1
|
| 30 |
thea = thea * 3
|
| 31 |
anglais = anglais * 2
|
| 32 |
hist = hist * 3
|
| 33 |
espagnol = espagnol * 2
|
| 34 |
+
eps = eps * 2
|
| 35 |
conduite = 14 * 1
|
| 36 |
|
| 37 |
# Collectez les données des matières dans un tableau
|
|
|
|
| 41 |
["Physique", physique/4],
|
| 42 |
["SVT", svt/3],
|
| 43 |
["Philo", philo/2],
|
| 44 |
+
["Documentation", documentation/1],
|
| 45 |
["Théâtre", thea/3],
|
| 46 |
["Histoire", hist/3],
|
| 47 |
["Anglais", anglais/2],
|
| 48 |
["Espagnol", espagnol/2],
|
| 49 |
+
["Eps",eps/2],
|
| 50 |
["Conduite", conduite/1],
|
| 51 |
]
|
| 52 |
|
|
|
|
| 66 |
+ hist
|
| 67 |
+ anglais
|
| 68 |
+ espagnol
|
| 69 |
+
+ eps
|
| 70 |
+ conduite
|
| 71 |
)
|
| 72 |
+
r = total / 31
|
| 73 |
print(f"Moyenne : {matha.trunc(r * 100) / 100}")
|
| 74 |
return matha.trunc(r * 100) / 100
|
| 75 |
|