CBSE Class 11 Computer Science
Question 14 of 91
String Manipulation — Question 4
Back to all questions 4
Question Question 4
Which of the following functions will return the last three characters of a string s?
- s[3:]
- s[:3]
- s[-3:] ✓
- s[:-3]
Which of the following functions will return the last three characters of a string s?