Tag: Python List clear()
Python List clear()
In this article, we will discuss about the usage details of clear() method of Python List. Introduction In Python, the list class provides a method clear(), to remove all elements from list. Syntax of List clear() The syntax of index() method of list is as follows, Advertisements list.clear() Parameters We don’t need to provide any …