While using keyword argument,and fetching getting only one pair of data:
def all(**student):
for k,v in student.items():
return k,v
all(name='ashu',age=25)
Getting both pair of data, why so?
def all(**student):
for k,v in student.items():
print(k,v)
all(name='ashu',age=25)