Answers for "How to create a set of words from a string?"

0

How to create a set of words from a string?

string=("one one two three three four hello hello")
set_of_words = set(string.split(' ')
Posted by: Guest on March-22-2021

Code answers related to "How to create a set of words from a string?"

Browse Popular Code Answers by Language