#!/usr/bin/python3 import calcul print(calcul.addition(6, 2)) print(calcul.soustraction(6, 2))
#!/usr/bin/python3 from calcul import addition from calcul import soustraction a = 25 b = 20 print(addition(a, b)) print(soustraction(a, b))
import calcul print(calcul.addition(1,2)) print(calcul.soustraction(5,1))
#!/usr/bin/python3 from calcul import addition a = 1 b = 3 print(addition(a, b)) # les 2 fonctionnent print(addition(1, 3)) # PEP8 ok if addition(1, 3) == 4: print("20/20") else: print("0/20") # PEP8 FAIL if addition(1, 3) == 4: print("20") from calcul import soustraction print(soustraction(4, 1)) # pas vraiment une bonne pratique from calcul import * import calcul calcul.soustraction(5, 7) calcul.addition(5, 7)
import calcul print(calcul.addition(3, 7)) print(calcul.soustraction(4, 2)) from calcul import addition from calcul import soustraction print(addition(3, 7)) print(soustraction(4, 2))
#!/usr/bin/python3 from calcul import addition, soustraction a = 1 b = 2 print(addition(a, b)) print(soustraction(a, b)) from calcul import addition print(addition(5, 6)) import calcul calcul.addition(8, 5) calcul.soustraction(2, 20)
#!/usr/bin/python3 from calcul import addition, soustraction print(addition(2, 3)) print(soustraction(2, 3))
#!/usr/bin/python3 from calcul import addition, soustraction if __name__ == "__main__": print(addition(10, 5)) print(soustraction(10, 3))