A mechanism to select a range of items from sequence types like list, tuple, strings etc., is known as slicing. Post navigation What is the unittest in Python? What are generators in Python?