10,300 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 …

  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. Built-in functions — Python 3.15.2 documentation

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

  4. 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 …

  5. functions | Python Best Practices – Real Python

    Functions are probably the most useful tool for organizing Python code. They let you give a name to a piece of behavior, reuse it in …

  6. 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 …

  7. Welcome to Python.org

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

  8. Write a function that takes in two values and outputs the sum of their squares. “I’m a function too!” When am I allowed to use a …

  9. Defining and Calling Python Functions

    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 …

  10. Python Functions [Complete Guide] – PYnative

    Jan 26, 2025 · In Python, the function is a block of code defined with a name. We use functions whenever we need to perform the …