I declare a dictionary named Exemple-diccionari with different names and phone numbers. Then the user enters a new name and a new number that will be added as a new item to the dictionary. I want the console to print the dictionary, but with this format: Name + Phone nº Name2 + Phone º2 ...
Instead of {'Name': 'Phone nº', 'Name2': 'Phone nº2', ...}
I was thinking about using a for statement what do you think? Here's the code:
Dictionary={'Name':'Phone n','Name2':'Phone n2','Name3':'Phone n3'}
First=input('Whats the name? ')
Second=input('And the phone number? ')
Dictionary[str(Primer)]=str(Segundo)
counter=1
for counter in range(1, len(Exemple_diccionari)):
print(Exemple_diccionari[contador])
I don't know exactly how to continue neither if the for is right. Thank you