About 50 results
Open links in new tab
  1. 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 provide an …

  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 print() function).

  3. python - What does the caret (^) operator do? - Stack Overflow

    Side note, seeing as Python defines this as an xor operation and the method name has "xor" in it, I would consider it a poor design choice to make that method do something not related to xor like …

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

    Aug 10, 2010 · In Python 3, your example range (N) [::step] produces a range object, not a list. To really see what is happening, you need to coerce the range to a list, np.array, etc.

  5. syntax - What does += mean in Python? - Stack Overflow

    The problem with the later is (aside from the leading-space), depending on the Python implementation, the Python interpreter will have to make a new copy of the string in memory every time you append …

  6. python - What exactly does += do? - Stack Overflow

    What does += do in Python? I also would appreciate links to definitions of other shorthand tools in Python.

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

    Functions, in Python, are first class objects - which means you can pass a function as an argument to another function, and return functions. Decorators do both of these things. If we stack decorators, the …

  8. What do the symbols "=" and "==" mean in python? When is each used?

    Nov 11, 2025 · 1 As MarkyPython already said. Assignment means you use the = to assign the value on the right side to a variable a on the left side. a=10 means that a is equal to 10 from here on. The …

  9. 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: def get (self, *a, **kw) Would you please explain it to me or point out where I can find an

  10. >> operator in Python - Stack Overflow

    Aug 5, 2010 · What does the &gt;&gt; operator do? For example, what does the following operation 10 &gt;&gt; 1 = 5 do?