Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- friends_names = ['Аня', 'Коля', 'Лёша', 'Лена', 'Миша']
- friends_cities = ['Владивосток', 'Красноярск', 'Москва', 'Обнинск', 'Чебоксары']
- friends = {}
- for n in range(len(friends_names)):
- friends = {friends_names[n]: friends_cities[n]}
- #friends = {friends_names[n]: friends_cities[n] for n in range(len(friends_names))}
- print(friends)
Advertisement
Add Comment
Please, Sign In to add comment