Estoy teniendo algunos problemas para averiguar cómo cortar las listas de Python, que se ilustra de la siguiente manera:Cómo dividir una lista de un elemento n hasta el final en python?
>>> test = range(10)
>>> test
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> test[3:-1]
[3, 4, 5, 6, 7, 8]
>>> test[3:0]
[]
>>> test[3:1]
[]
>>> test
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
A mi entender, el tramo de pitón significa LST [Inicio: Fin], y que incluye inicio, excluyendo final. Entonces, ¿cómo voy a encontrar el "resto" de una lista a partir de un elemento n?
¡Muchas gracias por toda su ayuda!