You can pass as many arguments as you like. (There is a limit, but normally you will not reach it...)
def calc(*args):
print(args)
calc(1,2,3,4,'hello',5,6,7,8)
# output: (1, 2, 3, 4, 'hello', 5, 6, 7, 8)
9th Jan 2020, 9:32 AM
Lothar
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :