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