Copy the code below. This code will display all of the words in a string. Make the following changes.
text = "hello world" x = 0 temp = "" while x < len(text): if text[x] == " ": print ("Found word ", temp) temp = "" else: temp = temp + text[x] x = x + 1
You need to log in or create an account to submit code!