0
In python if we use arguments... While calling fuction is it possible to pass different arguments in that function call
3 Answers
+ 3
different argument can be passed but the data types of the arguements in the function call should be the same as the data types you defined but the identifier can be anything.
+ 1
what do you want to say with different arguments? write some examples
0
def func(integer, string, list, dict, default=0):
.....
i=7
s="hey;vijay"
l=[1, "34", 4, "yo"]
d={'1': 44, '2': 567, '3': "okay"}
func(i, s, l, d)
u can do this...
hope you are asking for this...
if not be more specific abut the doubt