pyhton list remove all element in a function defined function code example Example: python list remove all elements l = [1,2,3,4] l.clear()