Arguments de mots clés illimités Python
def calculate(n, **kwargs):
print(n + kwargs['add'])
print(n * kwargs['multiply'])
calculate(3, add=4, multiply=5)
Tejas Naik
def calculate(n, **kwargs):
print(n + kwargs['add'])
print(n * kwargs['multiply'])
calculate(3, add=4, multiply=5)