Словарь поиск Python
phone_number_lookup = {
'alice': '555-4321',
'bob': '555-1234'
}
print("Alice's phone number is %s" % phone_number_lookup['alice'])
Talented Trout