I want to default the parameter C to 20 if I don't supply any values.
How is this possible ?
functypes(1,2,,4,5,6,id='jijo',job='engineer')
I have tried this but it shows syntax error :
functypes(1,2,,4,5,6,)
^
SyntaxError: invalid syntax
def functypes(a,b,c=20,*y,**Z):
print("the values of a,b,c are",a,b,c)
for y1 in y:
print("The values in Y are",y1,",",end='')
for z1,z2 in Z.items():
print("The values in Z are",z1,z2)
The following call works fine :
functypes(1,2,,4,5,6,id='jijo',job='engineer')