Created
July 17, 2010 03:46
-
-
Save zzak/479218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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