About 184,000 results
Open links in new tab
  1. Python Functions - W3Schools

    In Python a function is defined using the def keyword: To call a function, use the function name followed by parenthesis: Information can be passed into functions as arguments. Arguments …

  2. Python Tutorial - W3Schools

    Python can be used on a server to create web applications. With our "Try it Yourself" editor, you can edit Python code and view the result. print("Hello, World!") Click on the "Try it Yourself" …

  3. Python Functions - Python Guides

    What are Functions in Python? A function is a block of organized, reusable code that performs a specific task. Functions help break our program into smaller and modular chunks, making it …

  4. Python - Built-in Functions - Python Functions & Modules - W3schools

    Using a built-in function is as easy as pie (mmm... pie). Here's the general syntax: Let's break this down: function_name is the name of the built-in function you want to use. arguments are the …

  5. Python - Functions: Your Gateway to Efficient Coding

    Types of Python Functions. Python offers several types of functions: Built-in functions; User-defined functions; Anonymous functions (lambda functions) Let's focus on user-defined …

  6. Python map() function - GeeksforGeeks

    Oct 23, 2024 · Let’s start with a simple example of using map () to convert a list of strings into a list of integers. Explanation: Here, we used the built-in int function to convert each string in the …

  7. Python Built in Functions - W3Schools

    Python has a set of built-in functions. Returns a readable version of an object. Replaces none-ascii characters with escape character. Returns a character from the specified Unicode code.

  8. Decorators in Python - GeeksforGeeks

    Jan 7, 2025 · In Python, decorators are a powerful and flexible way to modify or extend the behavior of functions or methods, without changing their actual code. A decorator is essentially …

  9. Built-in FunctionsPython 3.13.3 documentation

    3 days ago · Return the absolute value of a number. The argument may be an integer, a floating-point number, or an object implementing __abs__(). If the argument is a complex number, its …

  10. Python Functions - GeeksforGeeks

    Mar 10, 2025 · Below are the different types of functions in Python: Built-in library function: These are Standard functions in Python that are available to use. User-defined function: We can …