Python (Level-6): Iterators, Lambda, Try...Except,

Iterators

An iterator is an object that contains a countable number of values and  can be iterated upon, meaning that you can traverse through all the values using __iter__() and __next__() methods.

Let's study above topic using example code.



Lambda function

A lambda function is a small anonymous function and can only have one expression.

Let's study above topic using example code.



Exception handling

with Logical errors:




Comments

Popular posts from this blog

Processing Language(Level-1): Game Coding.

Python (Level-3): Data Types