Answer:
statement = input("Enter four words separated by a space: ")
split_list = statement.split(" ")
print(f"{split_list[0]} went to {split_list[1]} to buy {split_list[2]} different types of {split_list[3]}")
Explanation:
The python program uses the input function to get user input from the STDIN and the words gotten are splitted to a list, then the items of the list are used as part of a sentence.