What is slicing in python?



What is slicing in python?..

Answer / Rizwan Alam Khan.

Slicing in Python allows you to extract a portion of a sequence such as lists, strings or tuples. The basic syntax is `[start:stop:step]`, where start is the index at which slicing begins (optional, default is 0), stop is the index before which slicing ends, and step determines the stride length between elements to be selected.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Why c++ is faster than python?

1 Answers  


How can you unsign or delete variable in python?

1 Answers  


How to count the occurrences of a perticular element in the list?

1 Answers  


Is haskell faster than python?

1 Answers  


What is polymorphism in python with example?

1 Answers  


State and explain about strings?

1 Answers  


How can I find methods or attributes of an object in Python?

1 Answers  


What does ** (double star) and * (star) do for python parameters?

1 Answers  


features of Python What are the essential?

2 Answers  


What is difference between tuple and list?

1 Answers  


What is data hiding in python?

1 Answers  


What is python known for?

1 Answers  


Categories