Objective
Create a Python program that reads a word of at least four letters and shows several pieces of it.
Instructions
- Read a word.
- Show, on separate lines: the first letter, the last letter, the first three letters, the last three letters and the letters from position 1 to 3 (that is,
word[1:4]).
Python
P
n
Pyt
hon
yth
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise