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

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

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

  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. The Python Language Reference — Python 3.15.1 documentation

    1 day ago · The Python Language Reference ¶ This reference manual describes the syntax and core semantics of the language. It is …

  6. Python 3.15.1 documentation

    1 day 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 …

  7. Python Cheat Sheet

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

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

  9. Functions - Learn Python - Free Interactive Python Tutorial

    How do you call functions in Python? Simply write the function's name followed by (), placing any required arguments within the …

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