PLAY PODCASTS
Looping With enumerate() and Python GUIs With PyQt
Episode 38

Looping With enumerate() and Python GUIs With PyQt

The Real Python Podcast · Real Python

December 4, 202043m 51s

Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

<p>If you&rsquo;re coming to Python from a different language, you may not know about a useful tool for working with loops, Python&rsquo;s built-in enumerate function. This week on the show, David Amos is here, and he has brought another batch of PyCoder&rsquo;s Weekly articles and projects.</p> <p>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.</p> <p>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.</p> <p>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&rsquo;s bisect module, 73 examples to help you master f-strings, and game programming in Jupyter notebooks.</p> <div class="alert alert-primary" role="alert"> <p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/formatting-python-strings/">Formatting Python Strings</a> </p> <p>In this course, you&rsquo;ll see two items to add to your Python string formatting toolkit. You&rsquo;ll learn about Python&rsquo;s string format method and the formatted string literal, or f-string. You&rsquo;ll learn about these formatting techniques in detail and add them to your Python string formatting toolkit.</p> </div> <p>Topics:</p> <ul> <li>00:00:00 &ndash; Introduction</li> <li>00:01:53 &ndash; The youtube-dl Repository Has Been Restored on GitHub With Help From the Electronic Frontier Foundation</li> <li>00:04:12 &ndash; Python enumerate(): Simplify Looping With Counters</li> <li>00:07:24 &ndash; Hunting for Malicious Packages on PyPI</li> <li>00:14:31 &ndash; Sponsor: Scout APM</li> <li>00:15:31 &ndash; Using Python&rsquo;s bisect module</li> <li>00:19:00 &ndash; 73 Examples to Help You Master Python&rsquo;s f-Strings</li> <li>00:21:35 &ndash; 10 Python Skills They Don&rsquo;t Teach in Bootcamp</li> <li>00:27:32 &ndash; Video Course Spotlight</li> <li>00:28:28 &ndash; Python and PyQt: Creating Menus, Toolbars, and Status Bars</li> <li>00:33:51 &ndash; SDV: Synthetic Data Generation for Tabular, Relational, Time Series Data</li> <li>00:38:19 &ndash; jupylet: Game Programming in Jupyter Notebooks</li> <li>00:42:59 &ndash; Thanks and goodbye</li> </ul> <p>Show Links:</p> <p><a href="https://www.reddit.com/r/Python/comments/jvbqzc/the_youtubedl_repository_has_been_restored_on/">The youtube-dl Repository Has Been Restored on GitHub With Help From the Electronic Frontier Foundation</a></p> <p><a href="https://realpython.com/python-enumerate/">Python enumerate(): Simplify Looping With Counters</a> &ndash; Once you learn about for loops in Python, you know that using an index to access items in a sequence isn&rsquo;t very Pythonic. So what do you do when you need that index value? In this tutorial, you&rsquo;ll learn all about Python&rsquo;s built-in enumerate(), where it&rsquo;s used, and how you can emulate its behavior.</p> <p><a href="https://jordan-wright.com/blog/post/2020-11-12-hunting-for-malicious-packages-on-pypi/">Hunting for Malicious Packages on PyPI</a> &ndash; Jordan Wright installed every package on PyPI to look for malicious content. And he didn&rsquo;t just inspect code, he actually <em>ran</em> the packages. Brave soul! Learn how he set-up this project and what he learned on his adventure.</p> <p><a href="https://johnlekberg.com/blog/2020-11-21-stdlib-bisect.html">Using Python&rsquo;s bisect module</a> &ndash; Python&rsquo;s bisect module has tools for searching and inserting values into sorted lists. It&rsquo;s one of his &ldquo;batteries-included&rdquo; features that often gets overlooked, but can be a great tool for optimizing certain kinds of code.</p> <p><a href="https://miguendes.me/amp/73-examples-to-help-you-master-pythons-f-strings">73 Examples to Help You Master Python&rsquo;s f-Strings</a> &ndash; 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.</p> <p><a href="https://towardsdatascience.com/10-python-skills-419e5e4c4d66">10 Python Skills They Don&rsquo;t Teach in Bootcamp</a> &ndash; Here are ten practical and little-known pandas tips to help you take your skills to the next level.</p> <p><a href="https://realpython.com/python-menus-toolbars/">Python and PyQt: Creating Menus, Toolbars, and Status Bars</a> &ndash; In this step-by-step tutorial, you&rsquo;ll learn how to create, customize, and use Python menus, toolbars, and status bars for creating GUI applications using PyQt.</p> <p>Projects:</p> <ul> <li><a href="https://github.com/nir/jupylet">jupylet: Game Programming in Jupyter Notebooks</a></li> <li><a href="https://github.com/sdv-dev/SDV">SDV: Synthetic Data Generation for Tabular, Relational, Time Series Data</a></li> </ul> <p>Additional Links:</p> <ul> <li><a href="https://realpython.com/python-pyqt-gui-calculator/">Python and PyQt: Building a GUI Desktop Calculator - Real Python article</a></li> <li><a href="https://realpython.com/python-pyqt-layout/">PyQt Layouts: Create Professional-Looking GUI Applications - Real Python article</a></li> <li><a href="https://realpython.com/python-pyqt-database/">Handling SQL Databases With PyQt: The Basics - Real Python article</a></li> <li><a href="https://towardsdatascience.com/synthetic-data-vault-sdv-a-python-library-for-dataset-modeling-b48c406e7398">Synthetic Data Vault (SDV): A Python Library for Dataset Modeling</a></li> <li><a href="https://realpython.com/podcasts/rpp/7/">RPP - Episode 7: AsyncIO + Music, Origins of Black, and Managing Python Releases</a></li> </ul> <p>Level up your Python skills with our expert-led courses:</p> <ul> <li><a href="https://realpython.com/courses/using-jupyter-notebooks/">Using Jupyter Notebooks</a></li> <li><a href="https://realpython.com/courses/formatting-python-strings/">Formatting Python Strings</a></li> <li><a href="https://realpython.com/courses/how-to-write-pythonic-loops/">How to Write Pythonic Loops</a></li> </ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast &amp; join our community of Pythonistas</a></p>