micropython/tests/cpydiff/types_list_delete_subscrste...

10 wiersze
196 B
Python

"""
categories: Types,list
description: List delete with step != 1 not implemented
cause: Unknown
workaround: Use explicit loop for this rare operation.
"""
l = [1, 2, 3, 4]
del l[0:4:2]
print(l)