micropython/tests/basics/list_clear.py

5 lines
55 B
Python

# tests list.clear
x = [1, 2, 3, 4]
x.clear()
print(x)