About 21,800,000 results
Open links in new tab
  1. What do the symbols "=" and "==" mean in python? When is each …

    Nov 11, 2025 · Although in Python we normally say that exceptions are raised rather than thrown, but I guess that's just a minor point. But you might like to mention that it raises a NameError, …

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

    Apr 3, 2014 · 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. python - What do these operators mean ... - Stack Overflow

    Mar 4, 2013 · However, Python 3 changed the behavior of / to perform floating-point division even if the arguments are integers. The // operator was introduced in Python 2.6 and Python 3 to …

  4. What does asterisk * mean in Python? - Stack Overflow

    Does * have a special meaning in Python as it does in C? I saw a function like this in the Python Cookbook:

  5. What does colon equal (:=) in Python mean? - Stack Overflow

    What does the := operand mean, more specifically for Python? Can someone explain how to read this snippet of code? node := root, cost = 0 frontier := priority queue containing node only …

  6. What is :: (double colon) in Python when subscripting sequences?

    Aug 10, 2010 · I know that I can use something like string[3:4] to get a substring in Python, but what does the 3 mean in somesequence[::3]?

  7. python - What does if __name__ == "__main__": do? - Stack Overflow

    Jan 7, 2009 · If you are trying to close a question where someone should be using this idiom and isn't, consider closing as a duplicate of Why is Python running my module when I import it, and …

  8. Pipe character in Python - Stack Overflow

    Any Python library, standard or userbase, can overload any operator (e.g., archived PyCascading). The Python built-in types such as set and dict overload to define union and …

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

    Apr 25, 2017 · It's an operator in Python that can mean several things depending on the context. A lot of what follows was already mentioned (or hinted at) in the other answers but I thought it …

  10. What does the "at" (@) symbol do in Python? - Stack Overflow

    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 decorator do in …