Looping through list of dictionaries..
"""" I want to print sthg like : sagar249: first name: Sagar last name: Thapa city: Berlin sujan10: ..... But what i get is the whole dictionary instead of just username 'sagar249' Help me !!! """ usernames = [] sagar249= { 'first name': 'sagar', 'last name': 'thapa', 'city': 'berlin', } sujan10= { 'first name': 'sujan', 'last name': 'schönes', 'city': 'stuttghart', } shrawan07= { 'first name': 'shrawan', 'last name': 'singh', 'city': 'kathmandu', } usernames.append(sagar249) usernames.append(shrawan07) usernames.append(sujan10) for username in usernames: print(str(username) + ":\n") for key, value in username.items(): print("\t" + key.title()+ ": " + value.title()) print("\n\n")