Python 101

Python 101 – Type Hinting in Python (Video)

Learn all about type hinting (AKA type annotation) in this tutorial by Mike Driscoll What You’ll Learn  Pros and Cons of Type Hinting Built-in Type Hinting / Variable Annotation Collection Type Hinting Hinting Values That Could be None Type Hinting Functions What To Do When Things Get Complicated Classes Decorators Aliasing Other Type Hints This […]

Python 101 – Type Hinting in Python (Video) Read More »

Python 101 – Learn All About Functions (Video)

In this video tutorial you will learn the following: Creating a function Calling a function Passing arguments Type hinting your arguments Passing keyword arguments Required and default arguments *args and **kwargs Positional-only arguments Scope Related Merch Python 101 Video Series Python 101 – 2nd Edition: Amazon (paperback / Kindle) Gumroad (eBook – PDF, mobi, epub)

Python 101 – Learn All About Functions (Video) Read More »

Python 101 – Assignment Expressions

Assignment expressions were added to Python in version 3.8. The general idea is that an assignment expression allows you to assign to variables within an expression. The syntax for doing this is: NAME := expr This operator has been called the “walrus operator”, although their real name is “assignment expression”. Interestingly, the CPython internals also

Python 101 – Assignment Expressions Read More »

Python 101: Exception Handling (Video)

In this video tutorial, you will learn how exception handling works in Python. Specifically, you will learn the following: Common exceptions Handling exceptions Raising exceptions Examining exception objects Using the finally statement Using the else statement If you prefer to read a tutorial, you might be interested in this: Python 101 – Exception Handling Want

Python 101: Exception Handling (Video) Read More »

An Intro to Python Virtual Environments

Python has the concept of the virtual environments built-in to the language. A Python virtual environment is an environment where you can install 3rd party packages for testing without affecting the system Python installation. Each virtual environment has its own set of installed packages and, depending on the virtual environment and how it’s set up,

An Intro to Python Virtual Environments Read More »

OpenPyXL – Working with Microsoft Excel Using Python

The business world uses Microsoft Office. Their spreadsheet software solution, Microsoft Excel, is especially popular. Excel is used to store tabular data, create reports, graph trends, and much more. Before diving into working with Excel with Python, let’s clarify some special terminology: Spreadsheet or Workbook – The file itself (.xls or .xlsx). Worksheet or Sheet

OpenPyXL – Working with Microsoft Excel Using Python Read More »