Which of the following is the slicing operator?
(a) { }
(b) [ ]
(c)
(d) ( )
Answers
Answered by
1
The slice operator [n:m] returns the part of the string from the n'th character to the m'th character, including the first but excluding the last. In other words, start with the character at index n and go up to but do not include the character at index m.
Answered by
0
Answer:
(b) [ ]
Explanation:
b is the correct answer
Similar questions