• 07 December

    Python List extend()

    In this tutorial, we will see about Python List‘s extend method.Python List extend is used to add all items of iterable to end of the list. Let’s understand about basic of python list first. Python List is nothing but the collection of elements. You can add any data type to the list. You can create […]

  • 07 December

    Python List clear()

    In this tutorial, we will see about Python List‘s clear method.Python List clear method is used to remove all the items from the list. Python List clear example You can simply use clear method to delete all the items from the list.Python extend does not return anything but it actually updates the original list. Let’s […]

  • 07 December

    Python List copy()

    In this tutorial, we will see about Python List‘s copy method.Python List clear method is used to shallow copy the list. Python List copy example You can simply use copy method to shallow copy the list.It returns shallow copy of the list. Let’s understand this with the help of simple example. [crayon-6726886199c5d595549809/] Output: Original List: […]