Thanks for your response. Your solution was simple and effective.
Below code is working fine.
Below code is working fine.
a=int(input("Enter number of dictionaries that you want to create\n")) """Function to take the list values""" def Creat(l): print("First value is a string then three comma separated integers\n") l=[str(x) for x in input().split(",")] return l """Function to store list values in dictionary""" def Crd(l,d): d={} d["Name"] = l[0]; d["sub1"] = l[1]; d["sub2"] = l[2];d["sub3"] = l[3] return d k=0 while(k<a): k=0 l1=[];l1=Creat(l1) d1={} d1=Crd(l1,d1) k+=1 if k==a: break l2=[];l2=Creat(l2) d2={} d2=Crd(l2,d2) k+=1 if k==a: break .......... .......... z=0 while(z<a): z=0 print(d1) z+=1 if z==a:break print(d2) z+=1 if z==a:break .......... ..........