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

    The difference is that is telling Python that is now equal to . , on the other hand, is asking Python if is equal to . There are places where you can't tell Python what is equal to, but you can ask.

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

    <ipython-input-13-858cc886783d> in <module>() ----> 1 3.3 ^ 4 TypeError: unsupported operand type(s) for ^: 'float' and 'int' One neat thing about Python is that you can override this behavior in a class of …

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

    I need to know what += does in Python. It's that simple. I also would appreciate links to definitions of other shorthand tools in Python.

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

    In Python this is simply =. To translate this pseudocode into Python you would need to know the data structures being referenced, and a bit more of the algorithm implementation. Some notes about …

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

    Oct 17, 2024 · Have been told that in Python ''' is used to indicate the start of a multi-line string. However I have also been taught that this code also allows for the documentation of functions and modules.

  6. What does -> mean in Python function definitions? - Stack Overflow

    Jan 17, 2013 · 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 3 extends the feature by allowing you to …

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

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

    What does the asterisk mean when there is no argument name? For example in some functions of the class pprint.

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

    a += b is essentially the same as a = a + b, except that: + always returns a newly allocated object, but += should (but doesn't have to) modify the object in-place if it's mutable (e.g. list or dict, but int and …

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