Exercise 8 · Chapter: String ManipulationOptional+50 XP
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:
Python
Output:
Pyt hon nohtyP
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.