Puedes asignar variables a partir de listas de esta manera:
lst = [1, 2, 3, 4, 5, 6, 7, 8]
first = lst[0]
second = lst[1]
third = lst[2]
other = lst[3:]
print(first) ➞ outputs 1
print(second) ➞ outputs 2
print(third) ➞ outputs 3
print(other) ➞ outputs [4, 5, 6, 7, 8]Crea las variables first, second, third y other a partir de la lista proporcionada usando la asignación por desestructuración (consulta la pestaña Recursos para ver algunos ejemplos).
first ➞ 1
second ➞ 2
third ➞ 3
other ➞ [4, 5, 6, 7, 8]Tu tarea es desempaquetar la lista writeyourcodehere en cuatro variables: first, second, third y other.