The Real Python Podcast

Looping With enumerate() and Python GUIs With PyQt


Listen Later

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.

Topics:

  • 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
  • Show Links:

    The youtube-dl Repository Has Been Restored on GitHub With Help From the Electronic Frontier Foundation

    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.

    Projects:

    • jupylet: Game Programming in Jupyter Notebooks
    • SDV: Synthetic Data Generation for Tabular, Relational, Time Series Data
    • Additional Links:

      • 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
      • Level up your Python skills with our expert-led courses:

        • Using Jupyter Notebooks
        • Formatting Python Strings
        • How to Write Pythonic Loops
        • Support the podcast & join our community of Pythonistas

          ...more
          View all episodesView all episodes
          Download on the App Store

          The Real Python PodcastBy Real Python

          • 4.7
          • 4.7
          • 4.7
          • 4.7
          • 4.7

          4.7

          138 ratings


          More shows like The Real Python Podcast

          View all
          Software Engineering Radio by se-radio@computer.org

          Software Engineering Radio

          273 Listeners

          The Changelog: Software Development, Open Source by Changelog Media

          The Changelog: Software Development, Open Source

          292 Listeners

          Software Engineering Daily by Software Engineering Daily

          Software Engineering Daily

          625 Listeners

          Talk Python To Me by Michael Kennedy

          Talk Python To Me

          585 Listeners

          Thoughtworks Technology Podcast by Thoughtworks

          Thoughtworks Technology Podcast

          42 Listeners

          Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

          Super Data Science: ML & AI Podcast with Jon Krohn

          304 Listeners

          Python Bytes by Michael Kennedy and Brian Okken

          Python Bytes

          214 Listeners

          Data Engineering Podcast by Tobias Macey

          Data Engineering Podcast

          146 Listeners

          Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

          Syntax - Tasty Web Development Treats

          983 Listeners

          CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

          CoRecursive: Coding Stories

          189 Listeners

          DataFramed by DataCamp

          DataFramed

          268 Listeners

          Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

          Kubernetes Podcast from Google

          182 Listeners

          Practical AI by Practical AI LLC

          Practical AI

          213 Listeners

          AWS Podcast by Amazon Web Services

          AWS Podcast

          201 Listeners

          The Stack Overflow Podcast by The Stack Overflow Podcast

          The Stack Overflow Podcast

          63 Listeners