demo_ref_list_clear.py:
fruits = ["apple", "banana", "cherry"] fruits.clear() print(fruits)
➜ begtut>python demo_list_clear.py
[]