About 788,000 results
Open links in new tab
  1. What does the "at" (@) symbol do in Python? - Stack Overflow

    Jun 17, 2011 · 96 What does the “at” (@) symbol do in Python? @ symbol is a syntactic sugar python provides to utilize decorator, to paraphrase the question, It's exactly about what does …

  2. syntax - What do >> and << mean in Python? - Stack Overflow

    Apr 3, 2014 · 15 The other case involving print >>obj, "Hello World" is the "print chevron" syntax for the print statement in Python 2 (removed in Python 3, replaced by the file argument of the …

  3. What does the percentage sign mean in Python [duplicate]

    Apr 25, 2017 · 1 In python 2.6 the '%' operator performed a modulus. I don't think they changed it in 3.0.1 The modulo operator tells you the remainder of a division of two numbers.

  4. math - `/` vs `//` for division in Python - Stack Overflow

    Aug 23, 2024 · In Python 3.x, 5 / 2 will return 2.5 and 5 // 2 will return 2. The former is floating point division, and the latter is floor division, sometimes also called integer division. In Python …

  5. Using or in if statement (Python) - Stack Overflow

    Using or in if statement (Python) [duplicate] Asked 7 years, 4 months ago Modified 7 months ago Viewed 146k times

  6. slice - How slicing in Python works - Stack Overflow

    Python slicing is a computationally fast way to methodically access parts of your data. In my opinion, to be even an intermediate Python programmer, it's one aspect of the language that it …

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

  8. python - What does ** (double star/asterisk) and * (star/asterisk) …

    Aug 31, 2008 · A Python dict, semantically used for keyword argument passing, is arbitrarily ordered. However, in Python 3.6+, keyword arguments are guaranteed to remember insertion …

  9. Behaviour of increment and decrement operators in Python

    Sep 28, 2009 · Python is not C or C++. Different design decisions went into making the language. In particular, Python deliberately does not define assignment operators that can be used in an …

  10. python - What exactly do "u" and "r" string prefixes do, and what …

    This question is similar to: What's the difference between r'string' and normal 'string' in Python? and What's the u prefix in a Python string? Close voters, please vote to close as a duplicate of …

Refresh