Usually if lists are short, it would be easy to find out the indexes for the slicing method list[start:end] .
However, if lists happen to be extremely long, finding the indexes for the desired items becomes difficult. Is there a way to address this problem, like a more convenient method?
I don’t think there is one size fits all solution, it depends. You might use the index method to find the index. But this might be problematic if you have duplicate values.