CBSE Class 12 Computer Science Question 50 of 105

Python Revision Tour II — Question 11

Back to all questions
11
Question

Question 11

For any index n, s[:n] + s[n:] will give you original string s.

Answer

True

Reason — s[:n] — The slicing of a string starts from index 0 and ends at index n-1.
s[n:] — The slicing of a string starts from index n and continues until the end of the string.
So when we concatenate these two substrings we get original string s.