About 1,960,000 results
Open links in new tab
  1. 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 …

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

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

    What exactly do we mean by "adding"? What exactly do we mean by "storing the result in a"? python variables don't store values directly they store references to objects. In python the …

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

  5. python - Why do some functions have underscores "__" before …

    May 24, 2024 · 3 In Python, the use of an underscore in a function name indicates that the function is intended for internal use and should not be called directly by users. It is a …

  6. What does the "yield" keyword do in Python? - Stack Overflow

    Oct 24, 2008 · Then each time you extract an object from the generator, Python executes code in the function until it comes to a yield statement, then pauses and delivers the object. When you …

  7. What does the 'with' statement do in python? - Stack Overflow

    Sep 13, 2013 · I am new to Python. In one tutorial of connecting to mysql and fetching data, I saw the with statement. I read about it and it was something related to try-finally block. But I …

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

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

  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 …