Initial commit
This commit is contained in:
10
training/code/04-functions/01-base/base_03.py
Normal file
10
training/code/04-functions/01-base/base_03.py
Normal file
@ -0,0 +1,10 @@
|
||||
# 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))
|
Reference in New Issue
Block a user