Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python

For example, I want to create an interpreter and have the meaning of the words (flowers, this, is, beautiful). The user enters a sentence that contains those words. How am I supposed to separate them so that they can be word for word?

2nd Apr 2020, 11:11 AM
Ali Khosroanjam
Ali Khosroanjam - avatar
2 Answers
0
Thanks
2nd Apr 2020, 11:24 AM
Ali Khosroanjam
Ali Khosroanjam - avatar
0
+if you want to rejoin you can use word=['flowers','this','is','beautiful'] " ".join(word)
2nd Apr 2020, 11:26 AM
Tricker