commit c567f87522827492f7a857f722eee78f6c7c2bc8 Author: Marlon Bordarier Date: Tue May 5 16:33:00 2026 +0200 Ajout de la calculatrice avec addition et soustraction diff --git a/calculatrice.py b/calculatrice.py new file mode 100644 index 0000000..512f897 --- /dev/null +++ b/calculatrice.py @@ -0,0 +1,12 @@ +def addition(a, b): + """Retourne la somme de a et b""" + return a + b + +def soustraction(a, b): + """Retourne la différence de a et b""" + return a - b + +if __name__ == "__main__": + print("5 + 3 =", addition(5, 3)) + print("5 - 3 =", soustraction(5, 3)) +