-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
16 lines (13 loc) · 744 Bytes
/
Copy pathmain.py
File metadata and controls
16 lines (13 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def main(): # << def définie une fonction
username = "Maxime"
age = 21
wallet = 1500
print("Votre prénom est " + username) # << il est Relié au username qui dit Maxime
print("Vous avez " + str(age) + "ans et un porte monnaie de " + str(wallet) + " d'argents.")
print("Nous allons passer sur vos notes d'écoles.") # << écrit
note1 = int(input("Entrez la premiere note")) # << Entre la première note
note2 = int(input("Entrez la segonde note"))
note3 = int(input("Entrez la derniere note"))
resultat = (note1 + note2 + note3) / 3 # << La moyenne en 3
print ("La moyenne de l'élève est de " + str(resultat)) # << str convertit des données en chaîne
main()