About 553,000 results
Open links in new tab
  1. What does -> mean in Python function definitions? - Stack Overflow

    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 various types of object. This is amazingly handy, so Python …

  2. What is -> in Python? – Pencil Programmer

    Sep 25, 2021 · The -> (arrow) is used to annotate the return value for a function in Python 3.0 or later. It does not affect the program but is intend to be consumed by other users or libraries as …

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

    Jun 21, 2024 · In Python, "->" denotes the return type of a function. While Python is dynamically typed, meaning variable types are inferred at runtime, specifying return types can improve …

  4. What’s this weird arrow notation in Python? | by Thomas K R

    Jan 18, 2020 · Python doesn’t use arrow notation, like JavaScript — so what is this arrow doing? This, friend, is a return value annotation, which is part of function annotation, and it’s a feature …

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

    In Python, the "->" symbol is used to indicate the return type of a function. It is part of the function definition in a Python 3.5 or later. For example, the following code defines a function add that …

  6. Mastering Python – A Complete Guide to Arrow Functions

    Arrow functions, also known as lambda functions, are a concise way of writing functions in Python. They are often used for small, single-expression functions and provide several …

  7. Understanding the Three Arrow Signs in Python 3 Programming

    Aug 12, 2024 · In this article, we will delve into the three arrow signs in Python 3 programming and explore their meanings and applications. The most commonly used arrow sign in Python 3 …

  8. Complete Guide to the Arrow (- > ) Notation in Python - Python

    Oct 10, 2024 · Learn everything about the Arrow(->) notation in Python. This guide explains function annotations, type hinting, practical examples, and best practices for improving code …

  9. Python Annotation - Delft Stack

    Mar 4, 2025 · This tutorial explores Python return value annotations using the -> operator, enhancing code readability and maintainability. Learn how to specify expected return types, …

  10. Python Arrow Functions and Lambda Functions - Learn At Hive

    In this tutorial, we'll explore Python's lambda functions—often informally referred to as Python's equivalent to JavaScript’s arrow functions—and how to use them effectively. What are …

  11. Some results have been removed
Refresh