Answer to Question #100788 in Python for Blessing

Question #100788
Create a string that is a long series of words separated by spaces. The string is your own creative choice. It can be names, favorite foods, animals, anything. Just make it up yourself. Do not copy the string from another source.
1
Expert's answer
2020-12-19T12:04:26-0500
#version 1
text = "cow shark bull raven gorilla wolf cat dog"
words_list = text.split()
print(words_list) #display finished list of words

#version 2
text = input("Enter string that is a long series of words separated by spaces:\n")
words_list = text.split()
print(words_list) #display finished list of words

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS