Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python (Free Course) - Part 6
Rating: 3.7 out of 5(25 ratings)
842 students

Python (Free Course) - Part 6

Learn how to write, optimize, and scale Python functions with confidence.
Last updated 7/2025
English
English [Auto],

What you'll learn

  • The concept and importance of functions in Python
  • How to define and call functions
  • Parameters vs. arguments
  • Different types of arguments (default, keyword, variable-length)
  • How return differs from print and when to use each
  • The difference between local and global variables
  • How to use decorators for cleaner and more dynamic code
  • How generators work and when to use them
  • Writing reusable, modular, and scalable code

Course content

1 section9 lectures1h 5m total length
  • Python (Free Course) - Part 6 - Functions (Free Course)0:56

    Explore Python functions in detail, covering arguments, decorators, generators, and global and local keywords, from basics to advanced concepts in part 6 of the free course.

  • Watch this Important2:56

    Explore part six on functions in Python, with notes linked in the blog article and comprehensive coverage of arguments, global and local variables, decorators, and generators.

  • Concept of Functions12:05

    Explore the concept of functions in Python, defined with def, called by name, and reusable across code; see examples like greet and car start to illustrate modularity, scoping, maintenance.

  • Parameters & Arguments11:36

    Learn how parameters act as function-defining variables and how arguments supply values, using f-strings with curly braces to print dynamic messages like names and ages.

  • Types of Arguments12:17

    Explore the three types of Python function arguments—positional, keyword, and default—by defining simple functions, passing arguments, and using default values for clarity and safety.

  • Return vs Print8:23

    Learn the difference between print and return in Python, where print displays results in the terminal for humans and return supplies values for computer logic.

  • Local & Global Variable5:58

    Explore the difference between local and global variables in Python, showing how local variables live inside a function while global variables are accessible everywhere, including inside functions.

  • Decorator & Generator10:06

    Explore decorators that extend a function’s behavior without changing its original code. Learn Python generators that yield values one by one to save memory for large data sets.

  • Bonus1:14

Requirements

  • Basic knowledge of Python syntax (variables, data types, loops, conditionals)
  • Access to a computer with Python installed
  • A willingness to practice and experiment with code

Description

Mastering functions is one of the most crucial skills in Python—and in programming as a whole. In "Python (Free Course) - Part 6 - Functions", we’ll take you from the basics to advanced functional programming concepts in Python in a clear, engaging, and practical way. This isn’t just theory: every concept is immediately followed by real examples, demonstrations, and explanations so you fully understand how and when to apply it.

Whether you’ve just started learning Python or you’ve covered the syntax and now want to build your confidence in writing clean, modular, and reusable code, this course is your next logical step. You’ll go beyond simply writing functions—you’ll learn how to think in terms of designing them, understanding parameter behavior, return values, local vs. global variables, and even powerful tools like decorators and generators.

By the end of this course, you’ll be able to:

  • Write your own functions from scratch with confidence.

  • Pass different types of arguments: default, keyword, variable-length, etc.

  • Understand when to use return vs print—and why it matters.

  • Manage variable scopes without confusion.

  • Create efficient, maintainable, and elegant code with decorators and generators.

You’ll also walk away with a strong grasp of how Python handles function calls internally—an understanding that will pay dividends as you progress into more complex topics like OOP, data structures, and working with APIs or frameworks.

If you skip this course, you risk plateauing in your Python journey. Many learners struggle because they rely too much on writing linear code instead of modular, reusable functions. This course is the missing piece that helps you break through and begin writing professional-grade Python code.

Take this opportunity to elevate your Python skills. It’s not just about learning functions—it’s about transforming how you think and solve problems with code.

Who this course is for:

  • Python beginners looking to deepen their understanding of functions
  • Self-taught coders who want to write more modular and reusable code
  • Students preparing for technical interviews or assessments
  • Anyone who has completed introductory Python material and is ready to go deeper
  • Developers switching from another language who want to grasp Python’s approach to functions