Python3 list clear() method
![](https://www.7ix.net/wp-content/uploads/2021/06/6ca5fbdf228a48edf5a3eda3d776dedf-768x476.jpeg)
Brief introduction python list’s clear() function method is used to clear the entire list (list), the role is the same as del lis[:], but it is different from the list’s remove method, the former is to clear the latter is…