11 lines
192 B
Python
11 lines
192 B
Python
# Fonction produit
|
|
def product(x, y):
|
|
return x * y
|
|
|
|
|
|
# Tests d'appel de la fonction
|
|
print(product(10, 10))
|
|
print(product(15, -15))
|
|
print(product("hello ", 3))
|
|
print(product([1, 2, 3], 2))
|