Answer Posted / nashiinformaticssolutions
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 input () in python?
Is r easier than python?
Why and when do you use generators in python?
How to make any variable private in python ?
What is sub() function?
Explain about python’s parameter passing mechanism?
What is flask- wtf? Explain its features.
Explain split(), sub(), sub() methods of “re” module in python?
What does ** (double star) and * (star) do for python parameters?
What is pop in python?
How to prevent blocking in content() method of socket?
Can you modify the maximum depth for a recursive function in Python? If yes how?
How to delete a file in python?
What is typecasting in python?
How do you debug a program in python? Answer in brief.