Guest User

Untitled

a guest
Jan 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. argentina = {}
  2. def get_dic(file,phone):
  3. for line in file.readlines():
  4. if (line[0] == '#'):
  5. names = line.rstrip().strip()
  6. phone[names] = ''
  7. else:
  8. phone[names] = phone[names] + line.rstrip().strip()
  9.  
  10. get_dic(open(sys.argv[1],'r'), argentina)
Add Comment
Please, Sign In to add comment