Why is cls sometimes used instead of self as an argument in Python classes?
def __init__(self, firstname, lastname):
self.firstname = firstname
self.lastname = lastname
What is the most basic definition of "iterable", "iterator" and "iteration" in Python?
I have read multiple definitions but I am unable to identify the exact meaning as it still won't sink in.
Can someone please help me with the 3 definitions in layman ...