What is string slice? How is it useful?
Share
What is string slice? How is it useful?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
This technique is known as string slicing. 00:00 Python also allows a form of indexing syntax that extracts substrings from a string. It's known as string slicing. The syntax that you use looks really similar to indexing.
The string slice in python is used to developed a new substring from the original string due to this there is effect is occurred in the original string it simply means the original string remains the same as it was it previous.