2 Respuestas
0
thanks for your attention
0
You can use a dictionary. Name would be key, number value.
phonebook = {'Mike': '12345',
'Wendy': '54321',
... }
Then you can access the numbers by name, for example:
print(phonebook('Wendy'))