Skip to content

python slice string

Slicing is extraction of a part of a sequence like list, tuple, string. It can fetch multiple elements with a single statement. It does not remove the values from the iterable; instead makes a new object with the desired elements. Syntax start – Starting integer where the slicing of the object starts. Default to None if not provided.  end– Integer until which the slicing takes place. The slicing ends at index end – 1… Read More »A Complete Guide on List Slicing and slice() Method of Python

A Complete Guide on List Slicing and slice() Method of Python