mylist in A Sentence

    1

    Extend(Mylist)(where otherlist is a Python list).

    0
    2

    And in the relevant methods call Mylist.

    0
    3

    Here Mylist is an iterable because it implements the iterator protocol.

    0
    4

    The first declaration ensures that you only call methods on Mylist that are defined by the List interface(so no ArrayList specific methods).

    0
    5

    These look exactly the same in a short program, but if you go on to use Mylist 100 times in your program you can start to see a difference.

    0