Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Abstracting with Functions

Abstracting with Functions

Explore the art of crafting and utilizing functions
Last updated 4/2024
English

What you'll learn

  • Learn to create functions to encapsulate logic into reusable units.
  • Understand how functions can enhance code readability and maintainability.
  • Discover techniques for harnessing the power of functions to streamline programming endeavors.
  • Gain insights into the art of crafting and utilizing functions effectively in code optimization.

Course content

1 section9 lectures3h 7m total length
  • Overview2:03
  • What is a Function18:36
  • Creating a Function23:42
  • Functions without Arguments32:03
  • Functions with a Single Positional Argument15:21

    Learn how a function uses a single positional argument with strings like cheese. Compare positional and keyword parameters, and see how passing extra arguments triggers errors.

  • Functions with a Single Keyword Argument23:45
  • Functions w/ Multiple Positional Arguments25:54

    Explores functions with multiple positional arguments, including two-argument and *args patterns, showing how to define, call, and unpack parameters and preserve order.

  • Functions w/ Multiple Keyword Arguments22:43

    Explores how to define functions with multiple keyword arguments using * and **, showing how to enforce keyword-only inputs or collect arbitrary kwargs into a dictionary mapping foods to calories.

  • Fuctions w/ Mixed Arguments23:32

    Explore how mixed arguments work in Python by combining positional and keyword parameters, using *args and **kwargs, with examples like topping1, car, color, and model.

Requirements

  • Basic understanding of programming concepts in Python.
  • Familiarity with basic data types, control structures, and syntax in Python.
  • Some experience with writing and running Python code.
  • An interest in improving code organization and efficiency through the use of functions.
  • No prior experience with functions is required, but a foundational knowledge of Python programming will be helpful.

Description

Join us in this course as we explore the powerful world of functions and learn how to encapsulate logic into reusable units. Discover how functions can boost code readability and maintainability, making your programming work more efficient and effective. If you’re ready to dive into creating and utilizing functions to streamline your code, this course is perfect for you.

This course provides a thorough look at creating and using functions in Python to improve the structure and organization of your code. Starting with the basics, you'll learn how to bundle logic into reusable chunks, making your code more manageable. Each lesson covers key topics like function syntax, edge cases, handling single and multiple arguments (both positional and keyword), and how they affect program behavior and clarity. With practical examples and insightful discussions led by instructors Aubri, Ronnie, Justin, and Zach, you’ll develop a strong understanding of how to use functions effectively in Python programming.

Whether you're just starting out and want to understand the fundamentals or you're an experienced developer aiming to refine your coding practices, this series will provide valuable tips and techniques to enhance your Python skills. Join us on this journey to master the art of functions and optimize your Python code for better efficiency and readability.

Who this course is for:

  • Programmers looking to improve code organization and efficiency.
  • Those seeking to enhance code readability and maintainability.
  • Individuals eager to explore the benefits of using functions to streamline their programming workflows.
  • Anyone interested in mastering the art of crafting and utilizing functions effectively in code development.