19,600 results
Open links in new tab
  1. Python Functions - W3Schools

    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 …Read more

  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 …Read more

  3. Built-in functions — Python 3.15.2 documentation

    2 days ago · Python doesn’t depend on the underlying operating system’s notion of text files; all the processing is done by Python …Read more

  4. Python - Functions - Online Tutorials Library

    A Python function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better …Read more

  5. Python Functions (With Examples) - Programiz

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

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

    5 days ago · Learn how to define a function in Python with def: parameters, return values, naming rules, docstrings, type hints, and …Read more

  7. Welcome to Python.org

    Functions Defined The core of extensible programming is defining functions. Python allows mandatory and optional arguments, …Read more

  8. Functions - Learn Python

    Write your own Python functions with def. Learn parameters, return values, docstrings, returning several values, and why functions …Read more

  9. functions | Python Best Practices – 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 …Read more

  10. Functions - Learn Python - Free Interactive Python Tutorial

    Functions are a convenient way to divide your code into useful blocks, allowing us to order our code, make it more readable, reuse it …Read more