Python Course – 4. Flow Control Structures
Learn Python flow control: if conditionals, for and while loops, and scope, with theory, videos and exercises to practice making your code take decisions.
Code
Inside articles there are more settings: width, font size, series position and code.
Saved in this browser.
Learn Python flow control: if conditionals, for and while loops, and scope, with theory, videos and exercises to practice making your code take decisions.
Learn Python functions: arguments and parameters, scope, documenting your code and lambda functions, with theory, videos and a hands-on ATM exercise.
Learn how to use and create Python packages and modules, install third-party libraries with PIP, and work with Random, Math and Datetime, with exercises.
Learn how Python exceptions work: how to catch them, which ones to handle and which to let through, with video lessons, theory and hands-on exercises.
Learn how to work with files and directories in Python: paths, reading and writing files, plus practical exercises with video lessons and downloadable theory.
Python generators let you stream data in real time and get each item only when it's consumed. A great balance between processing and memory. Learn them here.
Learn how to build your own dictionary-like classes in Python with Mapping and MutableMapping: magic methods, lifecycle, repr, str and a full working example.
Understand repr vs str in Python and learn how to use them in any custom class. Examples of using repr for debugging.
A hashable is any object that returns its "Hash Code" when asked, and that code stays the same for the whole life of the object. Learn how it works in Python.
Learn whether a variable can change (mutable) or not (immutable). Mutable: List, Dict, Set. Immutable: String, Int, Float, Bool, Tuple, Range, Decimal.
Learn how to build your own Collection in Python step by step: Container, Sized and Iterable explained, plus the difference between an Iterator and an Iterable.
Something we all overlook when starting with Python, and one of the most puzzling: functions (or methods) that take *args and **kwargs as parameters.