Study Material
Computer Science
Which of the following functions will return the last three characters of a string s?
s[3:]
s[:3]
s[-3:]
s[:-3]
Python String Manipulation
17 Likes
Answer
s[-3:]
Answered By
4 Likes
Related Questions
Which of the following is/are not legal string operators?
View Answer
Bookmark Now
Which of the following functions will return the total number of characters in a string?
View Answer
Bookmark Now
Which of the following functions will return the first three characters of a string s?
View Answer
Bookmark Now
Which of the following functions will return the string in all caps?
View Answer
Bookmark Now