+ 2
How do I use optional arguments in python?
I'm making a function for a homework that use 3 arguments but only 2 are strictly needed, is there a way to make the function work if the user forget to give the third argument?... sorry for my english by the way
2 Respostas
+ 2
def function(needed1,needed2,*optionalArgs):
0
thanks