4,610 results
Open links in new tab
  1. Python Functions

    Python Functions A function is a block of code which only runs when it is called. A function can return data as a result. A function …

  2. Python Functions - GeeksforGeeks

    Sep 19, 2026 · Python functions are reusable blocks of code used to perform a specific task. They help organize programs into …

  3. How to Define a Function in Python (def, Call, Return)

    Oct 20, 2026 · Learn how to define a function in Python with def: parameters, return values, naming rules, docstrings, type hints, and …

  4. Python Functions (With Examples)

    A function is a block of code that performs a specific task. In this tutorial, we will learn about the Python function and function …

  5. Defining Your Own Python Function – Real Python

    Oct 24, 2026 · Learn how to define your own Python function, pass data into it, and return results to write clean, reusable code in …

  6. Defining and Calling Python Functions – Real Python

    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 …

  7. Python Functions: Define, Call, and Return Values

    Learn to define and call Python functions, use parameters and return values, understand scope basics, and write reusable code with …

  8. How To Define a Function in Python | LearnPython.com

    Apr 15, 2021 · Learn how to improve code structure and reusability by defining your own functions in Python. Examples and best …

  9. How to Define and Call a Function in Python - GeeksforGeeks

    Jul 23, 2025 · In Python, defining and calling functions is simple and may greatly improve the readability and reusability of our code. …

  10. Defining Functions

    2.1 Defining Functions You have been composing code that calls Python functions since the beginning of this booksite. In this …