A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community. The show covers a wide range of topics including Python programming best practices, career tips, and related software development topics. Join us every Friday morning to hear what's new in the world of Python programming and become a more effective Pythonista.

Defining Optional Arguments and Moving Beyond "Beginner" Python

March 04, 2022 0:53:24 52.31 MB Downloads: 0

How do you define Python functions that accept optional arguments or default values? Are you wondering how to go beyond being a beginner with Python? This week on the show, Christopher Trudeau is here, and he’s brought another batch of PyCoder’s Weekly articles and projects.

Christopher shares a Real Python article, “Defining Python Functions With Optional Arguments.” We talk about function flexibility, specifying default values, and using args & kwargs.

We discuss resources for a Python beginner to move beyond the basics and become more competent. Both of us share our experiences moving past these hurdles.

We cover several other articles and projects from the Python community, including a news roundup, ten tools you may have wished you knew when you started working with Python, Python’s zipfile for manipulating your zip files efficiently, how one company optimized Python API server code by 100x, a dependency-free Python library for downloading YouTube videos, and how to use Python on the command line with other shell commands.

Course Spotlight: Defining Python Functions With Optional Arguments

In this video course, you’ll learn about Python optional arguments and how to define functions with default values. You’ll also learn how to create functions that accept any number of arguments using args and kwargs.

Topics:

  • 00:00:00 – Introduction
  • 00:03:08 – Django Project Reformats Entire Codebase With Black
  • 00:03:53 – PEP 673: Self Type Was Accepted
  • 00:05:16 – PEP 654 Accepted: Exception Groups
  • 00:07:45 – Upcoming Python Feature PEPs
  • 00:10:01 – Defining Python Functions With Optional Arguments
  • 00:15:12 – Sponsor: CData Software
  • 00:15:53 – 10 Tools I Wish I Knew When I Started Working With Python
  • 00:23:22 – How We Optimized Python API Server Code 100x
  • 00:29:47 – Python’s zipfile: Manipulate Your ZIP Files Efficiently
  • 00:32:47 – Video Course Spotlight
  • 00:33:59 – How Do I Go From Being a Beginner to Competent in Python?
  • 00:47:02 – pytube: Dependency-Free Python Library for Downloading – YouTube Videos
  • 00:49:30 – pz: Use Python on the Command Line With Other Shell Commands
  • 00:52:23 – Thanks and goodbye

News:

Topics:

Projects:

Additional Links:

Support the podcast & join our community of Pythonistas