Answers for "removing things from lsit"

-1

removing things from lsit

l = list(range(10))
print(l)
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

l.clear()
print(l)
# []
Posted by: Guest on August-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language