About 13,200 results
Open links in new tab
  1. Python Functions - GeeksforGeeks

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

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

  3. Built-in functions — Python 3.15.2 documentation

    1 day ago · This function supports dynamic execution of Python code. source must be either a string or a code object. If it is a string, …

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

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

  7. How to call a function in Python - GeeksforGeeks

    Jul 23, 2025 · Python is an object-oriented language and it uses functions to reduce the repetition of the code. In this article, we will …

  8. Functions in Python

    Learn about functions in Python, their types and different properties. See built in functions and user defined functions.

  9. Python Functions - Computer Science

    Almost all the code you work with in Python is inside a function. Suppose we have a Python program in the file example.py. The …

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