An Intro to Python Editors

The Python programming language comes with its own built-in Integrated Development Environment (IDE) called IDLE. The name, IDLE, supposedly came from the actor, Eric Idle, who was a part of the Monty Python troupe, which is what Python itself is named after. IDLE comes with Python on Windows and some Linux variants. You may need …

An Intro to Python Editors 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 – How to Create a Python Package

When you create a Python file, you are creating a Python module. Any Python file that you create can be imported by another Python script. Thus, by definition, it is also a Python module. If you have two or more related Python files, then you may have a Python package. Some organizations keep all their …

Python 101 – How to Create a Python Package Read More »

How to Send Emails with Python

Python provides a couple of really nice modules that you can use to craft emails with. They are the email and smtplib modules. Instead of going over various methods in these two modules, you’ll spend some time learning how to actually use these modules. Specifically, you’ll be covering the following: The basics of emailing How …

How to Send Emails with Python Read More »

PyDev of the Week: Tonya Sims

This week we welcome Tonya Sims (@TonyaSims) as our PyDev of the Week! Tonya is a Python Developer Advocate for Vonage and is an active member of the Real Python community. Tonya recently gave a talk called “Faceoff Fun with Python Frameworks: FastAPI vs Flask” at EuroPython 2021. Let’s spend some time getting to know …

PyDev of the Week: Tonya Sims Read More »

Python 101 – An Intro to Jupyter Notebook

The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain code, equations, visualizations, and formatted text. By default, Jupyter Notebook runs Python out of the box. Additionally, Jupyter Notebook supports many other programming languages via extensions. You can use the Jupyter Notebook for data cleaning and transformation, …

Python 101 – An Intro to Jupyter Notebook Read More »

Merging Dictionaries with the Union Operator

As a developer, there are times where you may end up with two or more dictionaries that you need to combine into one master dictionary. There are lots of different ways to merge dictionaries in the Python programming language. In this tutorial, you will look at a few of the old ways to merge dictionaries …

Merging Dictionaries with the Union Operator Read More »