DEV Community

DDSRY
DDSRY

Posted on Edited on

Is there a limit to the number of arguments a function can have in Python ?

▪ It depends on the version of Python and the computer you are using, but it is fairly large.

▪ The practical limit, though, is about five arguments before the function becomes
annoying to use.

Top comments (2)

Collapse
 
pentacular profile image
pentacular •

In cpython (the implementation most people use), prior to version 3.7, the limit is 255.

Collapse
 
ddsry21 profile image
DDSRY •

Thanks for your reply✌