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
How do you insert a line break in python?
How to get the ascii value in python?
What is a numpy in python?
What is self in python constructor?
Describe how to send email from a python script?
Difference between __str__ and __repr__ in python?
In python, are there any databases to DB packages?
What is the necessity to use pass statement in python program?
What is the usage of enumerate () function in python?
How would you work with numbers other than those in the decimal number system?
How can you identify the data type of any variable in python?
How will you convert a string to all lowercase?
what exactly are iterator, iterable, and iteration?
What are the basic datatypes in python?
Is python numpy better than lists?