List: SwapOandE_YI.py and slicing

Classwork:

What does each of the following statements print?
Answer this question and explain what each of them does on edmodo.com ( Use IDLE )
NOTE: be clear
words = “happy face”
print(words[1:3])
print(words[2:-1])
print(words[:])
print(words[:5])
print(words[5:])
print(words[::3])

Write a short python program, SwapOandE_YI.py to replace an ‘o’ with an ‘e’. Prompt the user for a word and display the swapped version of it if it contains an o. Otherwise, the program will just display the original word. This program must use the slicing technique you learned in the Hagman program.
Example:

Type a word and I will replace any 'o' with an 'e': broom
The swapped word is: breem
>>>