Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capitals = {'Россия':'Москва', 'Англия':'Лондон'}
- while True:
- s = input('Введите название страны: ')
- if s in capitals:
- print('Столица этой страны: ', capitals[s])
- else:
- s1 = input('Подскажете столицу?')
- capitals[s] = s1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement