Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

String Slicing Fun

Read a word. Print the first 3 characters, then the last 3 characters, then the word reversed — each on its own line.

Example:

Input:

text
Python

Output:

text
Pyt
hon
nohtyP

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python