4,580 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 · Defining a Function A function can be defined using def keyword. Below is the syntax to define a function: Syntax of …Read more

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

  4. Python Functions (With Examples) - Programiz

    In this tutorial, we will learn about the Python function and function expressions with the help of examples.

  5. What does -> mean in Python function definitions?

    Jan 17, 2013 · It's a function annotation. In more detail, Python 2.x has docstrings, which allow you to attach a metadata string to …Read more

  6. Python 3.15.2 documentation

    2 days ago · What's new in Python 3.15? Or all "What's new" documents since Python 2.0 Tutorial Start here: a tour of Python's …Read more

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

  8. Built-in functions — Python 3.15.2 documentation

    2 days ago · Built-in functions ¶ The Python interpreter has a number of functions and types built into it that are always available. …Read more

  9. Python Functions - Computer Science

    Python Functions A python program is made of many lines of code, stored in a file with a name like "example.py". It's natural to have …Read more

  10. Python Cheat Sheet

    Compact Python cheat sheet covering setup, syntax, data types, variables, strings, control flow, functions, classes, errors, and I/O.