Python | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
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