Real Python - 🐍 New Python tutorials on Real Python

Hey there,

There’s always something going on over at realpython.com as far as Python tutorials go.

Here’s what you may have missed this past week:


Write Unit Tests for Your Python Code With ChatGPT

In this tutorial, you'll learn how to use ChatGPT to generate tests for your Python code. You'll use the chat to create doctest, unittest, and pytest tests for your code:

realpython.com/chatgpt-unit-tests-python


Quiz: Python Sequences: A Comprehensive Guide

In this quiz, you'll test your understanding of sequences in Python. You'll revisit the basic characteristics of a sequence, operations common to most sequences, special methods associated with sequences, and how to create user-defined mutable and immutable sequences:

realpython.com/quizzes/python-sequences


WorkOS: The Modern Identity Platform for B2B SaaS, Free Up to 1 Million MAUs
Sponsored by WorkOS

WorkOS supports both the foundational auth you need as well as more complex enterprise features like Single Sign-On (SSO), SCIM provisioning, and Audit Logs. It provides flexible and easy-to-use APIs, helping companies like Vercel, Loom, and Webflow offer enterprise-grade auth. WorkOS also features the Admin Portal that allows you to onboard IT teams to SSO in minutes. Best of all, WorkOS User Management is free up to 1 million MAUs.

Get Started For Free


Python Basics Exercises: Scopes

In this Python Basics Exercises course, you'll practice working with scope in Python. You'll reinforce important coding concepts by working with variables inside and outside of functions and loops. You'll also get to practice the LEGB rule:

realpython.com/courses/python-basics-exercises-scopes


What's Lazy Evaluation in Python?

This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you'll clearly understand which approach is best for you, depending on your needs:

realpython.com/python-lazy-evaluation


Join Exclusive Talks by Top AI Researchers
Sponsored by Buzzrobot

Hi, fellow human! Sophia here. Join virtual talks with top researchers from Google DeepMind, OpenAI, Meta, etc. It’s an opportunity to learn directly from AI experts about cutting-edge AI research and discuss it with them. I post updates on talks, share videos, and summaries of past talks in my newsletter.

Subscribe to My Newsletter


Quiz: What Is the __pycache__ Folder in Python?

In this quiz, you'll have the opportunity to test your knowledge of the __pycache__ folder, including when, where, and why Python creates these folders:

realpython.com/quizzes/python-pycache


The Real Python Podcast – Episode #202: Pydantic Data Validation & Python Web Security Practices

How do you verify and validate the data coming into your Python web application? What tools and security best practices should you consider as a developer? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles and projects:

realpython.com/podcasts/rpp/202


Quiz: How to Check if a Python String Contains a Substring

In this quiz, you'll check your understanding of the best way to check whether a Python string contains a substring. You'll also revisit idiomatic ways to inspect the substring further, match substrings with conditions using regular expressions, and search for substrings in pandas:

realpython.com/quizzes/python-string-contains-substring


Defining and Calling Python Functions

In this course, you'll learn how to define and call your own Python function. You'll also learn about passing data to your function and returning data from your function back to its calling environment:

realpython.com/courses/defining-and-calling-functions


PyCoder's Weekly – Get the Latest Python News & Updates

Become a better Pythonista and stay up-to-date with your weekly dose of Python news & projects:

 → pycoders.com or click here to get the latest issue via email


A lot of time and effort goes into the Real Python team bringing you new and in-depth Python tutorials every week.

Please do us a solid and share your favorite Real Python content to help us spread the word.

Thanks for your time and for being a dedicated reader!

— Dan Bader (realpython.com)


Level Up With Unlimited Access to 3,500+ Python Tutorials and Video Lessons => Join Real Python

Make the Leap From Beginner to Intermediate => Get Python Basics: A Practical Introduction to Python 3

Python Tips, Interviews, and More =>The Real Python Podcast

Get Help With Your Coding Questions Experts on the RP Team => Real Python Office Hours

Find Your Dream Python Job => Python Job Board

A Peer-to-Peer Learning Community for Python Enthusiasts…Just Like You => PythonistaCafe

Give Your Team the Real-World Python Skills They Need to Succeed => Online Python Training for Teams

Older messages

🐍 New Python tutorials on Real Python

Saturday, April 20, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Write Pythonic and Clean Code With namedtuple

🐍 New Python tutorials on Real Python

Saturday, April 13, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python News: What's New From March 2024 In

🐍 New Python tutorials on Real Python

Saturday, April 6, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python Deep Learning: PyTorch vs Tensorflow

🐍 New Python tutorials on Real Python

Saturday, March 30, 2024

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Prompt Engineering: A Practical Example Learn

🚨 winter warm-up giveaway (last call)

Monday, March 25, 2024

Hey there, Our Winter Warm-Up giveaway ends in a few hours. Entering the giveaway is completely free and you can win Python education prizes worth over $2000, including three years of all-access to

You Might Also Like

Charted | How Americans Feel About Federal Government Agencies 💸

Friday, May 10, 2024

Americans love the National Park Service. They hate the IRS. But what about the ones in between? View Online | Subscribe Presented by Voronoi: The App Where Data Tells the Story FEATURED STORY How

Nailing product roadmaps

Friday, May 10, 2024

​ The roadmap is not the territory. People who only see but don't create product roadmaps may be inclined to ask, “How hard can it be?” to create one. After all, good product roadmaps appear

6 ways AI can help launch your business

Friday, May 10, 2024

Impressive $170 tablet; iMessages on Windows; No-fee video doorbell -- ZDNET ZDNET Tech Today - US May 10, 2024 placeholder 6 ways AI can help launch your next business venture Artificial intelligence

US investigates Fisker Ocean again, this time for braking randomly

Friday, May 10, 2024

US regulators have opened their FOURTH probe of Fisker's Ocean SUV View this email online in your browser By Alex Wilhelm Friday, May 10, 2024 Welcome to TechCrunch AM! This morning, let's take

⚙️ Judge makes a tentative ruling in AI copyright case

Friday, May 10, 2024

Plus: TikTok will label AI-generated content & Microsoft has new stats on AI in the workplace ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

SWLW #598: Developer Productivity for humans, Where to start with Strategy, and more.

Friday, May 10, 2024

Weekly articles & videos about people, culture and leadership: everything you need to design the org that makes the product. A weekly newsletter by Oren Ellenbogen with the best content I found

Apple apologizes for iPad Pro ad

Friday, May 10, 2024

The Morning After It's Friday, May 10, 2024. Apple has apologized for its Crush! ad, which sparked a furious backlash among artists, musicians, and other creators. AdAge reports Apple said the

ASP.NET Core News - 05/10/2024

Friday, May 10, 2024

View this email in your browser Get ready for this weeks best blog posts about ASP.NET Core! This newsletter is sponsored by elmah.io - the most advanced, yet so simple to set up, error logging and

Chrome Zero-Day Alert — Update Your Browser to Patch New Vulnerability

Friday, May 10, 2024

THN Daily Updates Newsletter cover PowerShell 7 Workshop ($35.99 Value) FREE for a Limited Time Discover the capabilities of PowerShell 7 for your everyday tasks with this carefully paced tutorial that

Post from Syncfusion Blogs on 05/10/2024

Friday, May 10, 2024

New blogs from Syncfusion Performance Optimization in React Pivot Table with Data Compression By Manikandan Murugesan This blog explains the performance optimization in React Pivot Table using Data