Home / Python Tips Generated By ChatGPT / Slicing Lists for Sublists in Python Extract portions of a list using slicing. Source Code sublist = my_list[1:3] # Get items from index 1 up to but not including 3 print(sublist)