Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- argentina = {}
- def get_dic(file,phone):
- for line in file.readlines():
- if (line[0] == '#'):
- names = line.rstrip().strip()
- phone[names] = ''
- else:
- phone[names] = phone[names] + line.rstrip().strip()
- get_dic(open(sys.argv[1],'r'), argentina)
Add Comment
Please, Sign In to add comment