So I need to do this:
[ ] print the last 4 letters of long_word in reverse
[ ] print the letters spanning indexes 3 to 6 of long_word in Reverse long_word = "timeline"
I know how to print the entire string in reverse from a certain point, but I'm not sure how to print a certain part of it.
Asked
Active
Viewed 35 times
-3
Grodd21
- 1
-
2Asking a question in a bigger font doesn't solve what is wrong with your question, namely that you don't provide an example of what you tried yourself and what the problem you are having with that is. https://stackoverflow.com/help/how-to-ask – Grismar Oct 14 '21 at 21:39
-
Please make an explicit example of your expectation. – Shayan Oct 14 '21 at 21:40
-
@Grismar sorry I didn't mean to format it like that – Grodd21 Oct 14 '21 at 21:41