About 828,000 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 helps avoiding code repetition.

  2. Built-in FunctionsPython 3.14.0 documentation

    2 days ago · In this case, it is purely a convenience function so you don’t have to explicitly import pdb or type as much code to enter the debugger. However, sys.breakpointhook() can be set to …

  3. Python - Star or Asterisk operator ( * ) - GeeksforGeeks

    Apr 25, 2025 · The asterisk (*) operator in Python is a versatile tool used in various contexts. It is commonly used for multiplication, unpacking iterables, defining variable-length arguments in …

  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 expressions with the help of examples.

  5. Python Functions [Complete Guide] – PYnative

    Jan 26, 2025 · Python function is a block of code defined with a name. Learn to create and use the function in detail. Use function argument effectively.

  6. Python Functions - Computer Science

    The existence of parameters perhaps explains why the parenthesis are part of the function-call syntax — the parenthesis are the place for the parameter values when the function is called.

  7. Python Functions - Python Cheatsheet

    In Python, A function is a block of organized code that is used to perform a single task.

  8. An Essential Guide to Python Functions By Examples

    In this tutorial, you'll learn to define custom Python functions so that you can reuse them in the program.

  9. Python Functions - Python Guides

    Functions are one of the most powerful features in Python, enabling code reuse, abstraction, and modularity. By mastering the concepts covered in this guide, you’ll be well-equipped to write …

  10. Python Function: The Basics Of Code Reuse

    Oct 19, 2025 · Learn how to create and use a Python function with Python's def keyword, why functions are useful, and learn about variable scope.