I have a small problem with something I need to do in school...
My task is the get a raw input string from a user (text = raw_input()) and I need to pri
text = raw_input()
If you are using Python 3, you can do this:
text = input() first, *middle, last = text.split() print(first, last)
All the words except the first and last will go into the variable middle.
middle