how to go through every word in a string python code example
Example: loop through words in a string python
str = 'Hello! I am Robot. This is a Python example.'
#split string
splits = str.split()
#for loop to iterate over words array
for split in splits:
print(split)