Episode 38: Looping With enumerate() and Python GUIs With PyQt
Dec 04, 2020 43m
If you’re coming to Python from a different language, you may not know about a useful tool for working with loops, Python’s built-in enumerate function. This week on the show, David Amos is here, and he has brought another batch of PyCoder’s Weekly articles and projects.
Along with the Real Python article covering the details of the enumerate function, we also talk about another article about constructing Python graphical user interface elements in PyQt.
David shares a couple of resources for data scientists, including an article about skills not taught in data science boot camps, and a project for creating synthetic data.
We also cover several other articles and projects from the Python community including, an update about youtubedl, hunting for malicious packages on PyPI, using Python’s bisect module, 73 examples to help you master f-strings, and game programming in Jupyter notebooks.
Course Spotlight: Formatting Python Strings
In this course, you’ll see two items to add to your Python string formatting toolkit. You’ll learn about Python’s string format method and the formatted string literal, or f-string. You’ll learn about these formatting techniques in detail and add them to your Python string formatting toolkit.
- 00:00:00 – Introduction
- 00:01:53 – The youtube-dl Repository Has Been Restored on GitHub With Help From the Electronic Frontier Foundation
- 00:04:12 – Python enumerate(): Simplify Looping With Counters
- 00:07:24 – Hunting for Malicious Packages on PyPI
- 00:14:31 – Sponsor: Scout APM
- 00:15:31 – Using Python’s bisect module
- 00:19:00 – 73 Examples to Help You Master Python’s f-Strings
- 00:21:35 – 10 Python Skills They Don’t Teach in Bootcamp
- 00:27:32 – Video Course Spotlight
- 00:28:28 – Python and PyQt: Creating Menus, Toolbars, and Status Bars
- 00:33:51 – SDV: Synthetic Data Generation for Tabular, Relational, Time Series Data
- 00:38:19 – jupylet: Game Programming in Jupyter Notebooks
- 00:42:59 – Thanks and goodbye
Python enumerate(): Simplify Looping With Counters – Once you learn about for loops in Python, you know that using an index to access items in a sequence isn’t very Pythonic. So what do you do when you need that index value? In this tutorial, you’ll learn all about Python’s built-in enumerate(), where it’s used, and how you can emulate its behavior.
Hunting for Malicious Packages on PyPI – Jordan Wright installed every package on PyPI to look for malicious content. And he didn’t just inspect code, he actually ran the packages. Brave soul! Learn how he set-up this project and what he learned on his adventure.
Using Python’s bisect module – Python’s bisect module has tools for searching and inserting values into sorted lists. It’s one of his “batteries-included” features that often gets overlooked, but can be a great tool for optimizing certain kinds of code.
73 Examples to Help You Master Python’s f-Strings – f-Strings might be one of the most beloved features in Python 3.6+. Here are 73 examples of how to use f-strings to improve your Python code.
10 Python Skills They Don’t Teach in Bootcamp – Here are ten practical and little-known pandas tips to help you take your skills to the next level.
Python and PyQt: Creating Menus, Toolbars, and Status Bars – In this step-by-step tutorial, you’ll learn how to create, customize, and use Python menus, toolbars, and status bars for creating GUI applications using PyQt.
- jupylet: Game Programming in Jupyter Notebooks
- SDV: Synthetic Data Generation for Tabular, Relational, Time Series Data
- Python and PyQt: Building a GUI Desktop Calculator - Real Python article
- PyQt Layouts: Create Professional-Looking GUI Applications - Real Python article
- Handling SQL Databases With PyQt: The Basics - Real Python article
- Synthetic Data Vault (SDV): A Python Library for Dataset Modeling
- RPP - Episode 7: AsyncIO + Music, Origins of Black, and Managing Python Releases