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
Why do lambda forms not have statements?
Explain the use of ternary operator in python?
What type of a language is python? Interpreted or Compiled?
What is raw_input in python 3?
What is the statement that can be used in Python if a statement is required syntactically but the program requires no action?
What does the function zip() do?
How do I use strftime in python?
How do you reverse the string in python?
How to redirect stdout to a file in python?
What is a decorator in python?
How to install a package and import?
What does the
Explain how can you generate random numbers in python?
What is the difference between methods & constructors?
How much do python programmers make?