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
https://linuxhint.com/error-types-python/
Error types:
https://docs.python.org/3/tutorial/errors.html
https://www.w3schools.com/python/python_try_except.asp
https://python-course.eu/python-tutorial/errors-and-exception-handling.php
Why use try-except than if statement?
https://avidpython.com/python-basics/when-to-use-try-except-instead-of-if-else/
Python Error types:
https://www.tutorialsteacher.com/python/error-types-in-python
Python Exception Hierarchy:
Comments
Post a Comment