0

In python if we use arguments... While calling fuction is it possible to pass different arguments in that function call

20th Oct 2017, 2:00 PM
VIJAY MADDINENI
VIJAY MADDINENI - avatar
3 Respuestas
+ 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.
21st Oct 2017, 3:47 AM
Talluri Saisumanth
Talluri Saisumanth - avatar
+ 1
what do you want to say with different arguments? write some examples
20th Oct 2017, 2:07 PM
Daniel
Daniel - avatar
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
20th Oct 2017, 3:19 PM
sayan chandra
sayan chandra - avatar