Skip to content

Instantly share code, notes, and snippets.

@zzak
Created July 17, 2010 03:46
Show Gist options
  • Save zzak/479218 to your computer and use it in GitHub Desktop.
Save zzak/479218 to your computer and use it in GitHub Desktop.
sequence = ['a', 'b', 'c']
seqtxt = "Sequence: %s"
print seqtxt % sequence
glue='-'
gluetxt = "Glue: %s"
print gluetxt % glue
joined = glue.join(sequence)
jointxt = "Joined: %s"
print jointxt % joined
splitted = joined.split(glue)
splittedtxt = "Splitted: %s"
print splittedtxt % splitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment