Skip to content

Instantly share code, notes, and snippets.

@haakenlid
Created September 2, 2017 11:40
Show Gist options
  • Save haakenlid/7c964ad3cea5bdad08abef4bba774379 to your computer and use it in GitHub Desktop.
Save haakenlid/7c964ad3cea5bdad08abef4bba774379 to your computer and use it in GitHub Desktop.
null created by haakenlid - https://repl.it/Kdbv/0
data = [(237146768, u'43 S LUBEC RD', u'LUBEC', u'ME'), (455414678, u'PO BOX 41', u'LUBEC', u'ME')]
record_separator = '\n\n------------\n\n'
items = ('\n'.join('- %s' % item for item in tup) for tup in data)
print(record_separator.join(items))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment