← Back to Strings
Question 13
Skip The First Two
Skip The First Two
Read one word and print everything except its first two characters using the slice [2:], which starts at position 2 and runs to the end when the stop position is left empty. Input: one line, the word, no prompt. The output is the rest of the word on one line.
Expected Output:
thon= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
StringsSlicing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.