Lists and Concatenating Strings
Creating strings from a list of words is something you will do frequently when writing Python code. This lesson showed you how to create strings using
words = ['cat', 'dog', 'horse', 'human'] print ' '.join(words)
This will print each word contained in
words separated by a space.
Become a Member to join the conversation.