Guest User

Untitled

a guest
Oct 7th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. friends_names = ['Аня', 'Коля', 'Лёша', 'Лена', 'Миша']
  2. friends_cities = ['Владивосток', 'Красноярск', 'Москва', 'Обнинск', 'Чебоксары']
  3. friends = {}
  4.  
  5. for n in range(len(friends_names)):
  6. friends = {friends_names[n]: friends_cities[n]}
  7.  
  8. #friends = {friends_names[n]: friends_cities[n] for n in range(len(friends_names))}
  9.  
  10. print(friends)
Advertisement
Add Comment
Please, Sign In to add comment