Answer Posted / glibwaresoftsolutions
Slicing is a method for gaining access to particular segments of sequences, including strings, tuples, and lists. The syntax used for slicing is []. You can optionally omit this step. All sequence elements from the start (inclusive) to the end-1 start:end:step element are returned by the [start:end] function. It indicates that there is a negative i at the end of the start or end element. The number of components that need to be skipped or the jump is represented by the step.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is list when we have to use ?
What is the most "pythonic" way to iterate over a list in chunks?
What does the **kwargs do in python?
How to redirect stdout to a file in python?
What is the meaning of stdin in python?
What is import in python?
What is the difference between python and shell scripting?
Tell me what are the tools that help to find bugs or perform static analysis?
What is pickling and unpickling in python?
How to clone or copy a list in python?
Where is python used?
How do I download a file over http using python?
Is indentation required in python?
How do I run Apache in Python?
How will you remove all leading and trailing whitespace in string in python?