Companies Home Search Profile

Python args and kwargs: Demystified

Focused View

Rich Bibby

12:24

231 View
  • 1-Passing-Multiple-Arguments-to-a-Function.mp4
    01:55
  • 2-Using-the-Python-args-Variable-in-Function-Definitions.mp4
    02:35
  • 3-Using-the-Python-kwargs-Variable-in-Function-Definitions.mp4
    01:08
  • 4-Ordering-Arguments-in-a-Function.mp4
    01:02
  • 5-Unpacking-With-the-Asterisk-Operators.mp4
    05:13
  • 6-Conclusion.mp4
    00:31
  • Python-args-and-kwargs.pdf
  • Description


    Sometimes, when you look at a function definition in Python, you might see that it takes two strange arguments: *args and **kwargs. If you’ve ever wondered what these peculiar variables are, or why your IDE defines them in main(), then this course is for you! You’ll learn how to use args and kwargs in Python to add more flexibility to your functions.

    By the end of the course, you’ll know:

    This course assumes that you already know how to define Python functions and work with lists and dictionaries.

    What You'll Learn?


    • What *args and **kwargs actually mean
    • How to use *args and **kwargs in function definitions
    • How to use a single asterisk (*) to unpack iterables
    • How to use two asterisks (**) to unpack dictionaries

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category

    Rich is an avid Pythonista and a video instructor at Real Python.

    He is also a Network Engineer using Python to automate the management of a large network infrastructure.

    He lives in Dubai, UAE, with his wife and daughter plus a Miniature Schnauzer.

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 6
    • duration 12:24
    • Release Date 2023/01/05