lista = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
print(lista[1:5]) # [1, 2, 3, 4]
print(lista[:5]) # [0, 1, 2, 3, 4]
print(lista[1:]) # [1, 2, 3, 4, 5, 6, 7, 8, 9]
print(lista[:]) # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
bGlzdGEgPSBbMCwgMSwgMiwgMywgNCwgNSwgNiwgNywgOCwgOV0KCnByaW50KGxpc3RhWzE6NV0pICAjIFsxLCAyLCAzLCA0XQpwcmludChsaXN0YVs6NV0pICAgIyBbMCwgMSwgMiwgMywgNF0KcHJpbnQobGlzdGFbMTpdKSAgICMgWzEsIDIsIDMsIDQsIDUsIDYsIDcsIDgsIDldCnByaW50KGxpc3RhWzpdKSAgICAjIFswLCAxLCAyLCAzLCA0LCA1LCA2LCA3LCA4LCA5XQ==
[1, 2, 3, 4]
[0, 1, 2, 3, 4]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]