0

Python functions

Anyone know the max amount of arguments that can be put into a function in python?

9th Jan 2020, 8:40 AM
Derbi E. Calderon
Derbi  E. Calderon - avatar
2 Answers
+ 4
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
Lothar - avatar