Hey If you are beginner and want to learn a python then you are on right path. Learn basic as well as advanced programming in Python.

Search

Python program to pass Dictionary as argument to function and achieve Output..

PYHTON PROGRAM




def func(dict):

for i in dict:

print("Name:",i,"\nAge:",dict[i])


Dictionary={"SG":19,"AG":18,"SK":20,"KP":21}


func(Dictionary)






*** Input && Output ***






No comments:

Post a Comment

let me know which type examples you want to comment me.