Explain indexing and slicing

indexing and slicing

1 Like

Indexing will help you to point out and get a particular element of an iterable container. It will starts from 0 and goes upto (len-1) by default but you can change it to any range (start and end) if you want.
Slicing is used to get small or any part of an iterable container or string (sub part). Slicing is done with the help index values available for the elements.
Hope this will help :cowboy_hat_face: