micropython/tests/basics/list_clear.py

5 lines
55 B
Python
Raw Normal View History

2014-01-03 23:22:53 +00:00
# tests list.clear
x = [1, 2, 3, 4]
x.clear()
print(x)