Empty list in Python

To empty list,
list = range(10)
del list[:]
honestly I do not fully understand how it works, but it works.

Comments

Popular posts from this blog

Calling OpenCV functions via Cython from Python 3.X.

Showing CPU/Memory usage on tmux status bar(tmuxのステータスバーにCPUとMemoryの使用状況を表示する)

Using cheap Intel ComputeStick STCK1A8LFC with Lubuntu 18.04