The Real Python Podcast

The Real Python Podcast

By Real PythonTechnology
Download on the App Store

The Real Python Podcast episodes

  • Generators, Coroutines, and Learning Python Through Exercises

    Have you started to use generators in Python? Are you unsure why you would even use one over a regular function? How do you use the special “send” method and the “yield from” syntax? This week on the show, we have Reuven Lerner to talk about his PyCon Africa 2020 talk titled “Generators, coroutines, and nanoservices.”

    Reuven helps developers around the world become more fluent in Python. We talk about some of his teaching techniques and also how he continues to learn. Reuven is a believer in the continued practice of Python through exercises. We discuss his book “Python Workout” and his Weekly Python Exercise courses.

    Course Spotlight: Python Generators 101

    In this step-by-step course, you’ll learn about generators and yielding in Python. You’ll create generator functions and generator expressions using multiple Python yield statements. You’ll also learn how to build data pipelines that take advantage of these Pythonic tools.

    Topics:

    • 00:00:00 – Introduction
    • 00:01:38 – Reuven’s web site: Teaching Python and Data Science around the world
    • 00:03:39 – Training remotely and screen-time overload
    • 00:07:03 – Info-tainment and sparking engagement
    • 00:11:05 – PyCon Africa 2020 - Generators, Coroutines, and Nanoservices
    • 00:13:34 – Using dis() - disassembler for Python bytecode
    • 00:15:09 – Exceptions as signals, not exclusively for errors
    • 00:17:39 – What makes generator functions different?
    • 00:22:05 – Using .send() and creating a coroutine
    • 00:23:39 – Sponsor: Scout APM
    • 00:24:40 – Stopping the generator with .throw()
    • 00:26:28 – Additional uses for generators
    • 00:30:03 – Python Workout: 50 ten-minute exercises
    • 00:34:22 – A combination of techniques and sources for continued learning
    • 00:40:15 – Weekly Python Exercise
    • 00:42:02 – Video Course Spotlight
    • 00:43:08 – Bachelor degree in CS, but a Doctorate in learning sciences
    • 00:48:26 – What are additional techniques you use to keep learning?
    • 00:50:18 – Teaching is a great way to keep learning
    • 00:51:28 – What areas of data science are you focusing on?
    • 00:53:22 – The Business of Freelancing: podcast
    • 00:56:26 – What is something you thought you knew about Python, but were wrong about?
    • 00:59:24 – What is something you are excited about in the world of Python?
    • 01:02:18 – Conferences and user groups
    • 01:05:03 – Thanks and goodbye
    • Show Links:

      • Teaching Python and Data Science around the world: Reuven’s Training Site
      • Reuven’s newsletter
      • Generators, Coroutines, and Nanoservices: Pycon Africa 2020
      • PEP 255 – Simple Generators: Python docs
      • How to Use Generators and yield in Python: Real Python article
      • dis — Disassembler for Python bytecode: Python docs
      • Exception Handling: Python docs
      • Python Workout : 50 ten-minute exercises - Manning
      • Weekly Python Exercise Course
      • Luis Serrano: machine learning & math made easy - YouTube channel
      • The Business of Freelancing: Podcast
      • RPP Episode 29: Resolving Package Dependencies With the New Version of Pip
      • Sign-up for pip UX Studies!
      • Level up your Python skills with our expert-led courses:

        • Python Generators 101
        • Grow Your Python Portfolio With 13 Intermediate Project Ideas
        • Speed Up Python With Concurrency
        • Support the podcast & join our community of Pythonistas

          1 hr 6 min
        • Looping With enumerate() and Python GUIs With PyQt

          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
                • How to Write Pythonic Loops
                • Formatting Python Strings
                • Support the podcast & join our community of Pythonistas

                  44 min
                • Teaching Python and Finding Resources for Students

                  One of the best ways to learn something well is to teach it. This week on the show, we have Kelly Schuster-Paredes and Sean Tibor from the Teaching Python podcast.

                  Sean and Kelly teach middle school students Python and share their art and science of teaching Python on their podcast. They wanted to come on the show to talk about the Real Python articles, quizzes, and other resources they use when teaching their students.

                  We also talk about teaching students how to research topics and use things like advanced search with Google. We discuss using cloud-based tools like collaborative notebooks and some of the core Python concepts students need for a solid foundation.

                  Kelly and Sean also talk about how the changes to teaching over the past year have had some unexpected benefits. They also talk about a few recent guests and topics covered on their podcast.

                  Course Spotlight: Basic Data Types in Python

                  In this course, you’ll learn the basic data types that are built into Python, like numbers, strings, and Booleans. You’ll also get an overview of Python’s built-in functions.

                  Topics:

                  • 00:00:00 – Introduction
                  • 00:02:17 – Why did you pick Python for the curriculum?
                  • 00:05:48 – Is there a particular IDE or editor you use when teaching?
                  • 00:07:35 – Is it helpful using cloud based tools with students?
                  • 00:10:02 – What Real Python resources are you using in the classroom?
                  • 00:11:48 – Using Google to find good resources
                  • 00:18:31 – Sponsor: Linode
                  • 00:19:16 – Other Real Python materials
                  • 00:27:58 – What video content works with students?
                  • 00:30:33 – Video Course Spotlight
                  • 00:31:30 – Recent topics and guests on Teaching Python
                  • 00:34:39 – Are code samples helpful when teaching?
                  • 00:37:06 – Using long form tutorials to demonstrate their learning
                  • 00:40:00 – What are you excited about in the world of Python (Sean)?
                  • 00:41:02 – What do you want to learn next (Sean)?
                  • 00:41:57 – What are you excited about in the world of Python (Kelly)?
                  • 00:45:28 – What do you want to learn next (Kelly)?
                  • 00:46:59 – Other considerations in selecting Python over Javascript or Swift
                  • 00:48:50 – Thanks and goodbye
                  • Show Links:

                    • Teaching Python Podcast
                    • Communicating With Video For Effective Learning: E44 Teaching Python
                    • Code with Mu: a simple Python editor for beginner programmers
                    • Welcome To Colaboratory: Google Colaboratory
                    • PyCharm: The Python IDE for Professional Developers
                    • Microsoft Visual Studio Code: Open Source IDE
                    • Writing Comments in Python (Guide): Real Python article
                    • Google Advanced Search
                    • Google Advanced Image Search
                    • The Beginner’s Guide to Python Turtle: Real Python article
                    • Basic Data Types in Python: Real Python article
                    • Python Quizzes: Real Python
                    • sentdex: YouTube channel
                    • Lists and Tuples in Python: Real Python video course
                    • Teaching the Full Stack with Ali Spittel (@alispittel): E52 Teaching Python
                    • Making Projects Happen with Eric Matthes (@ehmatthes): E54 Teaching Python
                    • Traditional Face Detection With Python: Real Python article
                    • SimPy: Simulating Real-World Processes With Python: Real Python article
                    • Understanding the Python Mock Object Library: Real Python article
                    • Django Girls
                    • Beyond the Basic Stuff with Python - Al Sweigart
                    • Going Beyond the Basic Stuff With Python and Al Sweigart: E33 Real Python Podcast
                    • Developing for Mobile, the Web, and Desktop with Russell Keith-Magee (@freakboy3742): E53 Teaching Python
                    • Create Cross-Platform Python GUI Apps With BeeWare: E22 Real Python Podcast
                    • BeeWare: Write once. Deploy everywhere.
                    • Level up your Python skills with our expert-led courses:

                      • Writing Comments in Python
                      • Lists and Tuples in Python
                      • Exploring Basic Data Types in Python
                      • Support the podcast & join our community of Pythonistas

                        50 min
                      • Sentiment Analysis, Fourier Transforms, and More Python Data Science

                        Are you interested in learning more about Natural Language Processing? Have you heard of sentiment analysis? This week on the show, Kyle Stratis returns to talk about his new article titled, Use Sentiment Analysis With Python to Classify Movie Reviews. David Amos is also here, and all of us cover another batch of PyCoder’s Weekly articles and projects.

                        Kyle discusses an article about distance metrics for machine learning. David shares a Real Python article about Python signal processing and Fourier transforms with scipy.fft. We also cover several other articles and projects from the Python community including, simulating real-world processes in Python with SimPy, working with Microsoft Excel using Python and OpenPyXL, why running code during import is a bad idea, what I wish I knew as a junior dev, the Raspberry Pi 400 personal computer, dynamic sky replacement and harmonization in videos with SkyAR.

                        Course Spotlight: Simulating Real-World Processes in Python With SimPy

                        In this step-by-step course, you’ll see how you can use the SimPy package to model real-world processes with a high potential for congestion. You’ll create an algorithm to approximate a complex system, and then you’ll design and run a simulation of that system in Python.

                        Topics:

                        • 00:00:00 – Introduction
                        • 00:02:56 – Use Sentiment Analysis With Python to Classify Movie Reviews
                        • 00:09:49 – OpenPyXL: Working with Microsoft Excel Using Python
                        • 00:12:41 – An Illustration of Why Running Code During Import Is a Bad Idea
                        • 00:16:52 – Distance Metrics for Machine Learning
                        • 00:22:52 – Sponsor: linode.com
                        • 00:22:52 – What I Wish I Knew as a Junior Dev
                        • 00:35:29 – Fourier Transforms With scipy.fft: Python Signal Processing
                        • 00:39:44 – Simulating Real-World Processes in Python With SimPy
                        • 00:43:30 – Video Course Spotlight
                        • 00:44:35 – Raspberry Pi 400 Personal Computer Kit Now Available
                        • 00:49:55 – SkyAR: Dynamic Sky Replacement and Harmonization in Videos
                        • 00:52:04 – Creating an Idea Factory with Roam Research
                        • 00:56:02 – Thanks and goodbye
                        • Show Links:

                          Use Sentiment Analysis With Python to Classify Movie Reviews – In this tutorial, you’ll learn about sentiment analysis and how it works in Python. You’ll then build your own sentiment analysis classifier with spaCy that can predict whether a movie review is positive or negative.

                          OpenPyXL: Working with Microsoft Excel Using Python – Ah, Excel. Everyone loves to hate it. But let’s face it. Excel is one of the most popular pieces of software ever written. But you love Python, not Excel, which is why you might want to learn OpenPyXL.

                          An Illustration of Why Running Code During Import Is a Bad Idea (And How It Happens Anyway) – Code that runs when a module is imported is usually a code smell. But sometimes there’s no way around it.

                          Distance Metrics for Machine Learning – Many machine learning algorithms can be summarized as transforming data to n-dimensional vectors and computing similarity between points by means of some distance metric. This article explores four of these metrics—the Euclidean, Manhattan, Minkowski, and Hamming distances—and how to compute them with Python.

                          What I Wish I Knew as a Junior Dev – Some of these are things even senior devs need to be reminded of sometimes!

                          Fourier Transforms With scipy.fft: Python Signal Processing – In this tutorial, you’ll learn how to use the Fourier transform, a powerful tool for analyzing signals with applications ranging from audio processing to image compression. You’ll explore several different transforms provided by Python’s scipy.fft module.

                          Projects:

                          • Simulating Real-World Processes in Python With SimPy
                          • Raspberry Pi 400 Personal Computer Kit Now Available
                          • SkyAR: Dynamic Sky Replacement and Harmonization in Videos
                          • Additional Links:

                            • Python Job Hunting in a Pandemic: RPP Episode 10
                            • Natural language processing: Wikipedia
                            • spaCy: Industrial-Strength Natural Language Processing in Python
                            • Natural Language Processing With spaCy in Python
                            • Natural Language Toolkit
                            • Building PDFs in Python with ReportLab: RPP Episode 20
                            • Mouse vs Python: Mike Driscoll Blog
                            • Python 101: 2nd Edition
                            • openpyxl - A Python library to read/write Excel 2010 xlsx/xlsm files
                            • Editing Excel Spreadsheets in Python With openpyxl
                            • How to Read a Book: The Ultimate Guide by Mortimer Adler
                            • import antigravity: The History of Python Blog
                            • How to Take Smart Notes by Sönke Ahrens - Summary
                            • Kyle Stratis’ YouTube Channel
                            • Creating an Idea Factory with Roam Research
                            • Level up your Python skills with our expert-led courses:

                              • Python Coding Interviews: Tips & Best Practices
                              • Editing Excel Spreadsheets in Python With openpyxl
                              • Simulating Real-World Processes in Python With SimPy
                              • Support the podcast & join our community of Pythonistas

                                58 min
                              • Security and Authorization in Your Python Web Applications

                                So you built a web application in Python. Now how are you going to authorize users? Security goes beyond authentication. Who gets to do what, where, and when? This week on the show, we have Sam Scott, chief technology officer from Oso. Oso is an open-source policy engine for authorization that you embed in your application.

                                Sam talks about the typical security and authorization challenges developers face. He discusses building an engine on top of your existing Flask or Django app. We cover the concept of policies, business logic, and some common paradigms.

                                Course Spotlight: Exploring HTTPS and Cryptography in Python

                                In this course, you’ll gain a working knowledge of the various factors that combine to keep communications over the Internet safe. You’ll see concrete examples of how to keep information secure and use cryptography to build your own Python HTTPS application.

                                Topics:

                                • 00:00:00 – Introduction
                                • 00:01:32 – Sam’s math background
                                • 00:03:11 – What is Sage?
                                • 00:04:24 – What is post-quantum cryptography?
                                • 00:05:19 – Getting Oso started, authentication vs authorization.
                                • 00:10:01 – What is a policy engine?
                                • 00:12:57 – Confusing business logic with authorization
                                • 00:17:09 – Sponsor: Techmeme Ride Home Podcast
                                • 00:17:38 – Pip installing Oso, adding to Flask or Django
                                • 00:21:15 – What are common security concerns for developers?
                                • 00:25:41 – What are security concerns users have?
                                • 00:27:14 – What are the worst security issues you’ve found in a Python app?
                                • 00:30:12 – Video Course Spotlight
                                • 00:31:32 – What are other common authorization “gotchas”?
                                • 00:37:16 – Additional Oso resources
                                • 00:39:36 – What does writing in Polar look like?
                                • 00:42:00 – Are there authorization paradigms?
                                • 00:46:02 – What are you excited about in the world of Python?
                                • 00:50:05 – What do you want to learn next?
                                • 00:50:49 – Thanks and goodbye
                                • Show Links:

                                  • oso on twitter
                                  • Sam on twitter
                                  • oso: an open source policy engine for authorization
                                  • oso Django Docs
                                  • oso Flask Docs
                                  • oso Python Library Docs
                                  • oso Source Code
                                  • oso Debugger Docs
                                  • Adding authorization to your Flask app with oso: oso blog
                                  • Building a Django app with data access controls in 30 min: oso blog
                                  • Generating Django Queryset filters from oso policies: oso blog
                                  • Polar Adventure: a text-based adventure game written in Polar
                                  • Lighting talk on access controls: oso blog
                                  • SageMath: A free open-source mathematics software system
                                  • Post-quantum cryptography: Wikipedia article
                                  • 327: Exploits of a Mom : XKCD Comic
                                  • Little Bobby Tables: Explain XKCD
                                  • Snyk: Developer-first Cloud Native Application Security
                                  • Geekle’s python Universe WEB Edition: 19 November 2020
                                  • WebAssembly(WASM)
                                  • Level up your Python skills with our expert-led courses:

                                    • Getting Started With Django: Building a Portfolio App
                                    • Exploring HTTPS and Cryptography in Python
                                    • Using Google Login With Flask
                                    • Support the podcast & join our community of Pythonistas

                                      52 min
                                    • The Python Modulo Operator & Managing Data With SQLite and SQLAlchemy

                                      Are you ready to move beyond flat files for your data in Python? Maybe you’re not sure where to start with databases and SQL. This week on the show, David Amos returns with another batch of PyCoder’s Weekly articles and projects. We cover a Real Python article about managing data with SQLite and SQLAlchemy.

                                      David explores the intricacies of using the modulo operator (%). We also cover several other articles and projects from the Python community including, how to shoot yourself in the foot with python, exploring fractals on a cloud computer, the DMCA takedown request for youtube-dl, python for feature film, an online multiplayer text-based game framework, and a sorting algorithms visualizer.

                                      Course Spotlight: Playing and Recording Sound in Python

                                      In this course, you’ll learn about libraries that can be used for playing and recording sound in Python, such as PyAudio and python-sounddevice. You’ll also see code snippets for playing and recording sound files and arrays, as well as for converting between different sound file formats.

                                      Topics:

                                      • 00:00:00 – Introduction
                                      • 00:01:35 – How to Shoot Yourself in the Foot With Python, Part 1
                                      • 00:11:31 – Data Management With Python, SQLite, and SQLAlchemy
                                      • 00:19:00 – Sponsor: Techmeme Ride Home Podcast
                                      • 00:19:29 – Exploring Fractals on a Cloud Computer
                                      • 00:23:28 – The youtube-dl GitHub Repo Has Received a DMCA Takedown Request From the RIAA
                                      • 00:29:09 – Video Course Spotlight
                                      • 00:30:12 – Python Modulo in Practice: How to Use the % Operator
                                      • 00:36:29 – Python For Feature Film
                                      • 00:44:01 – evennia: Online Multiplayer Text-Based Game Framework
                                      • 00:47:11 – Sorting-Algorithms-Visualizer: See How Sorting Algorithm Works With Pygame
                                      • 00:51:55 – Thanks and goodbye
                                      • Show Links:

                                        How to Shoot Yourself in the Foot With Python, Part 1 – If you’re new to Python, you might find yourself confused by some of the situations described in this article. Learn about five mistakes you could make, why they happen, and how to fix them.

                                        Data Management With Python, SQLite, and SQLAlchemy – In this tutorial, you’ll learn how to store and retrieve data using Python, SQLite, and SQLAlchemy as well as with flat files. Using SQLite with Python brings with it the additional benefit of accessing data with SQL. By adding SQLAlchemy, you can work with data in terms of objects and methods.

                                        Exploring Fractals on a Cloud Computer – Fractals might be some of the most interesting mathematical structures to study and to visualize. Learn what fractals are and how to create beautiful fractal animations with Python.

                                        The youtube-dl GitHub Repo Has Received a DMCA Takedown Request From the RIAA

                                        Python Modulo in Practice: How to Use the % Operator – In this tutorial, you’ll learn about the Python modulo operator (%). You’ll look at the mathematical concepts behind the modulo operation and how the modulo operator is used with Python’s numeric types. You’ll also see ways to use the modulo operator in your own code.

                                        Python For Feature Film – A look into how Python is used to bring your favorite movies to the big screen.

                                        Projects:

                                        • evennia: Online Multiplayer Text-Based Game Framework
                                        • Sorting-Algorithms-Visualizer: See How Sorting Algorithm Works With Pygame
                                        • Additional Links:

                                          • Python REST APIs and The Well-Grounded Python Developer: Doug Farrell Ep06:
                                          • Python REST APIs With Flask, Connexion, and SQLAlchemy: Real Python series
                                          • Python in Maya: Autodesk
                                          • Using Python - Maya: Autodesk Knowledge Network
                                          • Ineffective Sorts - xkcd comic
                                          • stacksort - StackSort connects to StackOverflow, searches for ‘sort a list’
                                          • Level up your Python skills with our expert-led courses:

                                            • Reading and Writing CSV Files
                                            • Playing and Recording Sound in Python
                                            • Editing Excel Spreadsheets in Python With openpyxl
                                            • Support the podcast & join our community of Pythonistas

                                              53 min
                                            • Going Beyond the Basic Stuff With Python and Al Sweigart

                                              You probably have heard of the bestselling Python book, “Automate the Boring Stuff with Python.” What are the next steps after starting to dabble in the Python basics? Maybe you’ve completed some tutorials, created a few scripts, and automated repetitive tasks in your life. This week on the show, we have author Al Sweigart to talk about his new book, “Beyond the Basic Stuff with Python: Best Practices for Writing Clean Code.”

                                              We discuss several topics covered in his new book, including using the command line, setting environment variables, formatting code, naming, and starting with version control. We talk about learning Python by creating games and highlight a couple of Python myths. I also ask Al about his earlier books, and about his idea of creating a curriculum around conference talks.

                                              Course Spotlight: Unicode in Python: Working With Character Encodings

                                              In this course, you’ll get a Python-centric introduction to character encodings and Unicode. Handling character encodings and numbering systems can at times seem painful and complicated, but this guide is here to help with easy-to-follow Python examples.

                                              Topics:

                                              • 00:00:00 – Introduction
                                              • 00:01:35 – Early access release of the new book
                                              • 00:03:20 – Other books Al has written
                                              • 00:09:54 – Automate the Boring Stuff as an advice book
                                              • 00:15:29 – Books about writing Python with games
                                              • 00:17:36 – Making a book less intimidating
                                              • 00:19:10 – Helping readers through random things a programmer needs to learn
                                              • 00:23:09 – Environment variables and the command line
                                              • 00:28:05 – Naming
                                              • 00:34:59 – Code formatting
                                              • 00:36:45 – Why do you enjoy teaching Python concepts with games?
                                              • 00:42:54 – Video Course Spotlight
                                              • 00:44:15 – Minimal amount you should know about Git
                                              • 00:47:08 – Jargon and being clear about terminology
                                              • 00:50:13 – Al’s first book diving into Object-Oriented Programming
                                              • 00:59:57 – Python myths covered in the book
                                              • 01:09:08 – What is something you thought you knew about Python, but were wrong about it?
                                              • 01:13:12 – What is something you are excited about in the world of Python?
                                              • 01:18:55 – What do you want to learn next?
                                              • 01:22:08 – Creating an curriculum from conference talks
                                              • 01:26:42 – Thanks and goodbye
                                              • Show Links:

                                                • Al Sweigart - Website
                                                • Beyond the Basic Stuff with Python
                                                • Automate the Boring Stuff with Python
                                                • Invent with Python
                                                • Xkcd comic “Real Programmers”
                                                • Resources to learn git
                                                • Fluent Python by Luciano Ramalho
                                                • Ozymandias: Wikipedia article
                                                • Ned Batchelder - Facts and Myths: PyCon 2015
                                                • Al Sweigart -The Amazing Mutable, Immutable Tuple: PyCascades 2019
                                                • BeeWare - Write once. Deploy everywhere.
                                                • What Professional Games Use Pygame?
                                                • Codename Mallow -Written in PyGame
                                                • Unity of Command - Written in PyGame
                                                • A Curriculum for Python Packaging: Al Sweigart’s Blog
                                                • Level up your Python skills with our expert-led courses:

                                                  • Introduction to Git and GitHub for Python
                                                  • Unicode in Python: Working With Character Encodings
                                                  • Mastering Python's Built-in time Module
                                                  • Support the podcast & join our community of Pythonistas

                                                    1 hr 28 min
                                                  • Our New "Python Basics" Book & Filling the Gaps in Your Learning Path

                                                    Do you have gaps in your Python learning path? If you’re like me, you may have followed a completely random route to learn Python. This week on the show, David Amos is here to talk about the release of the Real Python book, “Python Basics: A Practical Introduction to Python 3”. The book is designed not only to get beginners up to speed but also to help fill in the gaps many intermediate learners may still have.

                                                    David has been working on the book for the last two years, and we dive into all the resources that come with it. These include code challenges, quizzes, and multiple projects that are designed to help you cement your learning. We also discuss the people and processes involved in creating, reviewing, and updating the book.

                                                    Spotlight: Python Basics: A Practical Introduction to Python 3

                                                    Go from beginner to intermediate in Python with this complete curriculum, up-to-date for Python 3.9. Python Basics includes exercises, interactive quizzes, and sample projects, so you’ll always know what to focus on next in order to build a strong Python foundation.

                                                    Topics:

                                                    • 00:00:00 – Introduction
                                                    • 00:01:36 – Python Basics: A Practical Introduction to Python 3
                                                    • 00:02:39 – How has feedback helped the process?
                                                    • 00:04:17 – Who is the intended audience?
                                                    • 00:06:02 – Covering how to get Python installed on different platforms?
                                                    • 00:11:05 – What topics does the book cover?
                                                    • 00:14:12 – What can be previewed on Real Python?
                                                    • 00:15:03 – What format can you get the book in?
                                                    • 00:18:30 – Code challenges included!
                                                    • 00:21:33 – What other resources are provided to help with cementing your learning?
                                                    • 00:22:41 – What versions of Python are covered?
                                                    • 00:23:08 – How does the book fit into the Real Python learning eco-system?
                                                    • 00:29:35 – Spotlight: How to get a preview of the book!
                                                    • 00:30:38 – What has the writing process been like?
                                                    • 00:33:21 – What does didactic mean, in terms of reviewing materials?
                                                    • 00:39:23 – What were areas you were excited about updating?
                                                    • 00:41:29 – Were there important things you felt needed to be added?
                                                    • 00:45:55 – Who worked on the book?
                                                    • 00:47:13 – What are you excited about in the world of Python?
                                                    • 00:48:13 – What do you want to learn next?
                                                    • 00:49:40 – Thanks and goodbye
                                                    • Show Links:

                                                      • Python Basics: A Practical Introduction to Python 3
                                                      • Python 3 Installation & Setup Guide
                                                      • Create and Modify PDF Files in Python
                                                      • Python GUI Programming With Tkinter
                                                      • Object-Oriented Programming (OOP) in Python 3
                                                      • A Practical Introduction to Web Scraping in Python
                                                      • Level up your Python skills with our expert-led courses:

                                                        • Unicode in Python: Working With Character Encodings
                                                        • Grow Your Python Portfolio With 13 Intermediate Project Ideas
                                                        • Cool New Features in Python 3.9
                                                        • Support the podcast & join our community of Pythonistas

                                                          51 min
                                                        • Python Return Statement Best Practices and Working With the map() Function

                                                          The Python return statement is such a fundamental part of writing functions. Is it possible you missed some best practices when writing your own return statements? This week on the show, David Amos returns with another batch of PyCoder’s Weekly articles and projects. We also talk functional programming again with an article on the Python map function and processing iterables without a loop.

                                                          We cover several other articles and projects from the Python community including, interactive data visualization with Pygal, everything you need to know about namedtuples, PEP 638 syntactic macros, python for kids, the new Nvidia Jetson board, and a reinforcement learning project named football.

                                                          Topics:

                                                          • 00:00:00 – Introduction
                                                          • 00:01:33 – Interactive Data Visualization in Python With Pygal
                                                          • 00:06:40 – Python’s map(): Processing Iterables Without a Loop
                                                          • 00:12:51 – Everything You Need to Know About Python’s NamedTuples
                                                          • 00:19:46 – PEP 638: Syntactic Macros
                                                          • 00:26:43 – Video Course Spotlight
                                                          • 00:27:57 – The Python return Statement: Usage and Best Practices
                                                          • 00:34:42 – Python for Kids
                                                          • 00:38:03 – Build a Face Recognition System With the Nvidia Jetson Nano
                                                          • 00:42:32 – football: Reinforcement Learning Environment
                                                          • 00:45:51 – Thanks and goodbye
                                                          • Show Links:

                                                            Interactive Data Visualization in Python With Pygal – Pygal is an overlooked library for creating interactive plots that can be turned into SVGs with an optimal resolution for printing or displaying on webpages. Learn how it works in this introductory tutorial.

                                                            Python’s map(): Processing Iterables Without a Loop – In this step-by-step tutorial, you’ll learn how Python’s map() works and how to use it effectively in your programs. You’ll also learn how to use list comprehension and generator expressions to replace map() in a Pythonic and efficient way.

                                                            Everything You Need to Know About Python’s NamedTuples – Are you using NamedTuple in your code? If you aren’t, learn what they are and why you should consider using them in this comprehensive tutorial.

                                                            PEP 638: Syntactic Macros – This brand new PEP, which is still in draft mode, proposes adding support for syntactic macros to Python. Syntactic macros are compile-time functions that extend the language’s syntax without adding any new complexity to the language as a whole.

                                                            The Python return Statement: Usage and Best Practices – In this step-by-step tutorial, you’ll learn how to use the Python return statement when writing functions. Additionally, you’ll cover some good programming practices related to the use of return. With this knowledge, you’ll be able to write readable, robust, and maintainable functions in Python.

                                                            Python for Kids – In this ten part series, senior software engineer Kevin Thomas presents a kid-friendly comprehensive Python development tutorial utilizing a micro:bit development board. The GitHub repo contains all of the sample code as well as links to each tutorial in the series on LinkedIn. The first seven parts are published and the last three are coming soon!

                                                            Projects:

                                                            Build a Face Recognition System With the Nvidia Jetson Nano 2GB and Python – The Nvidia Jetson Nano is a single board computer similar to a Raspberry Pi. The Jetson Nano really packs a punch, however, thanks to its onboard Nvidia Maxwell GPU.

                                                            football: Reinforcement Learning Environment Where Agents Learn to Play Football

                                                            Additional Links:

                                                            • Pygal: Sexy python charting
                                                            • Bokeh: Interactive visualization library
                                                            • Common Python Data Structures (Guide) - Real Python article
                                                            • The Ultimate Guide to Data Classes in Python 3.7 - Real Python article
                                                            • PEP 572 – Assignment Expressions - Walrus Operator
                                                            • Python’s reduce(): From Functional to Pythonic Style - Real Python article
                                                            • NVIDIA Jetson Nano
                                                            • Google Research Football with Manchester City F.C.
                                                            • Level up your Python skills with our expert-led courses:

                                                              • Exploring Basic Data Types in Python
                                                              • Defining Main Functions in Python
                                                              • Command Line Interfaces in Python
                                                              • Support the podcast & join our community of Pythonistas

                                                                47 min
                                                              • Exploring the New Features of Python 3.9

                                                                Python 3.9 has arrived! This week on the show, former guest and Real Python author Geir Arne Hjelle returns to talk about his recent article, “Python 3.9: Cool New Features for You to Try”. Also joining the conversation is Real Python video course instructor and author Christopher Trudeau. Christopher has created a video course, which was released this week also, based on Geir Arne’s article. We talk about time zones, merging dictionaries, the new parser, type hints, and more.

                                                                Geir Arne and Christopher not only cover the new features, but they also offer advice about ways you might incorporate them into your code. We discuss what you should think about before updating your code.

                                                                Course Spotlight: Cool New Features in Python 3.9

                                                                In this course, you’ll explore some of the coolest and most useful features in the newly released Python 3.9. You’ll learn how Python 3.9 makes it easier to work with time zones, dictionaries, decorators, and several other techniques that will make your code cleaner and more efficient.

                                                                Topics:

                                                                • 00:00:00 – Introduction
                                                                • 00:02:02 – Proper Time Zone support
                                                                • 00:05:38 – What to do if your OS does not have tzdata?
                                                                • 00:07:11 – How do you add time zone info to your Python code?
                                                                • 00:08:24 – Historic changes to time zones
                                                                • 00:10:48 – New operators for updating dictionaries
                                                                • 00:15:44 – Geir Arne’s PyCon 2020 decorators tutorial
                                                                • 00:18:02 – Changes to decorator syntax
                                                                • 00:24:08 – Annotated type hints
                                                                • 00:32:36 – Video Course Spotlight
                                                                • 00:33:26 – The PEG parser
                                                                • 00:37:51 – Potential for new enhancements in upcoming releases
                                                                • 00:42:40 – String methods to remove prefixes and suffixes
                                                                • 00:44:22 – Type hint lists and dictionaries directly
                                                                • 00:47:29 – Topological Sort
                                                                • 00:52:03 – Greatest Common Divisor (GCD) and Least Common Multiple (LCM)
                                                                • 00:53:50 – New HTTP status codes
                                                                • 00:58:29 – Should you upgrade?
                                                                • 01:07:58 – Potential issue with Python 3.10 versioning
                                                                • 01:10:18 – What are you excited about in the world of Python?
                                                                • 01:12:52 – What do you want to learn next?
                                                                • 01:14:08 – Thanks and goodbyes
                                                                • Show Links:

                                                                  • Python 3.9: Cool New Features for You to Try: Real Python article
                                                                  • Cool New Features in Python 3.9: Real Python video course
                                                                  • dateutil - Powerful extensions to datetime
                                                                  • Paul Ganssle: Blog
                                                                  • IANA - Internet Assigned Numbers Authority: Time Zone Database
                                                                  • Dictionaries in Python: Real Python article
                                                                  • PEP 584 – Add Union Operators To dict: python.org
                                                                  • Primer on Python Decorators: Real Python article
                                                                  • PEP 614 – Relaxing Grammar Restrictions On Decorators: python.org
                                                                  • Introduction to Decorators: Power Up Your Python Code - PyCon 2020 Online Tutorial
                                                                  • Python Type Checking (Guide) - Annotations:Real Python article
                                                                  • PEP 484 – Type Hints: python.org
                                                                  • PEP 593 – Flexible function and variable annotations: python.org
                                                                  • PEP 617 – New PEG parser for CPython: python.org
                                                                  • PEG Parsing Series Overview: Guido van Rossum
                                                                  • PEP 622 – Structural Pattern Matching: python.org
                                                                  • PEP 616 – String methods to remove prefixes and suffixes: python.org
                                                                  • PEP 585 – Type Hinting Generics In Standard Collections: python.org
                                                                  • Topological sorting: Wikipedia article
                                                                  • graphlib — Functionality to operate with graph-like structures: docs.python.org
                                                                  • Greatest common divisor: Wikipedia article
                                                                  • Least common multiple: Wikipedia article
                                                                  • Hypertext Transfer Protocol (HTTP) Status Code Registry
                                                                  • Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)
                                                                  • PEP 602 – Annual Release Cycle for Python: Łukasz Langa - python.org
                                                                  • Porting to Python 3.9: docs.python.org
                                                                  • CPython Internals: Your Guide to the Python3 Interpreter
                                                                  • Panel: A high-level app and dashboarding solution for Python
                                                                  • PyQt: GUI Library
                                                                  • Pandas
                                                                  • Python and PyQt: Building a GUI Desktop Calculator - Real Python article
                                                                  • GIS in Python
                                                                  • GeoPandas
                                                                  • Level up your Python skills with our expert-led courses:

                                                                    • Python Decorators 101
                                                                    • Python Type Checking
                                                                    • Cool New Features in Python 3.9
                                                                    • Support the podcast & join our community of Pythonistas

                                                                      1 hr 15 min

                                                                    About The Real Python Podcast

                                                                    From the publisher's feed

                                                                    A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community.

                                                                    More shows like The Real Python Podcast

                                                                    The Changelog: Software Development, Open Source by Changelog Media

                                                                    The Changelog: Software Development, Open Source

                                                                    290 Listeners

                                                                    Software Engineering Daily by Software Engineering Daily

                                                                    Software Engineering Daily

                                                                    624 Listeners

                                                                    Talk Python To Me by Michael Kennedy

                                                                    Talk Python To Me

                                                                    582 Listeners

                                                                    Soft Skills Engineering by Jamison Dance and Dave Smith

                                                                    Soft Skills Engineering

                                                                    296 Listeners

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

                                                                    Super Data Science: ML & AI Podcast with Jon Krohn

                                                                    301 Listeners

                                                                    Python Bytes by Michael Kennedy and Calvin Hendryx-Parker

                                                                    Python Bytes

                                                                    212 Listeners

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

                                                                    Syntax - Tasty Web Development Treats

                                                                    983 Listeners

                                                                    Darknet Diaries by Jack Rhysider

                                                                    Darknet Diaries

                                                                    8,075 Listeners

                                                                    Tech Brew Ride Home by Morning Brew

                                                                    Tech Brew Ride Home

                                                                    961 Listeners

                                                                    Practical AI by Daniel Whitenack and Chris Benson

                                                                    Practical AI

                                                                    203 Listeners

                                                                    AWS Podcast by Amazon Web Services

                                                                    AWS Podcast

                                                                    202 Listeners

                                                                    Django Chat by William Vincent and Carlton Gibson

                                                                    Django Chat

                                                                    75 Listeners

                                                                    Last Week in AI by Skynet Today

                                                                    Last Week in AI

                                                                    311 Listeners

                                                                    Machine Learning Street Talk (MLST) by Machine Learning Street Talk (MLST)

                                                                    Machine Learning Street Talk (MLST)

                                                                    98 Listeners

                                                                    The Pragmatic Engineer by Gergely Orosz

                                                                    The Pragmatic Engineer

                                                                    74 Listeners