Same problem as before, but you decide to use more of your new Python skills. You are going to increase the spaces between the words. Write a function that takes a string and a number of spaces to insert between each word, then print out the resulting string.
```
def spaceout(astring, number):
pile = ""
space = " "
parts = astring.split()
for index in range(0,len(parts)-1):
pile = pile+ parts[index]+number*space
pile = pile+parts[len(parts)-1]
print pile
```
Additionally, the question specifically calls for spaces to be inserted between each word, not after each, which requires an implementation similar to the above. A simpler function that prints spaces after every word, even the last one, would be:
```
def spaceout(astring, number):
pile = ""
space = " "
parts = astring.split()
for index in range(0,len(parts)):
pile = pile+ parts[index]+number*space
print pile
```
You might also like to view...
When you insert a USB flash drive into one of the USB ports, the ________ program automatically runs.
a. USB reader b. AutoPlay c. Windows Explorer d. disk cleaner
When Ctrl + ________ is pressed all place holders in the active slide are selected
Fill in the blank(s) with correct word