About 226,000 results
Open links in new tab
  1. syntax - What does __all__ mean in Python? - Stack Overflow

    650 Explain all in Python? I keep seeing the variable __all__ set in different __init__.py files. What does this do? What does __all__ do? It declares the semantically "public" names from a …

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

  3. What is the effect of using `python -m pip` instead of just `pip`?

    What does it mean to "run as a script"? In Python, a module some_module is typically imported into another Python file with an import some_module statement at the top of the importing file. …

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

    7 Python has an operator to assign value to a name and it's =. The language also support many other operators like +, -, ** for operations defined in special methods of your objects. Although …

  5. What is the result of % (modulo operator / percent sign) in Python?

    Python gotcha: depending on the Python version you are using, % is also the (deprecated) string interpolation operator, so watch out if you are coming from a language with automatic type …

  6. What does bad color sequence mean in Python turtle?

    A very short and simplified answer is, it means the value passed to the pencolor () method has not been previously set via the Screen object method colormode (). A screen object must be …

  7. python - Difference between modes a, a+, w, w+, and r+ in built …

    In Python's built-in open function, what is the difference between the modes w, a, w+, a+, and r+? The documentation implies that these all allow writing to the file, and says that they open the …

  8. modulo - Python quotient vs remainder - Stack Overflow

    Python quotient vs remainder Asked 16 years, 10 months ago Modified 8 years, 6 months ago Viewed 48k times

  9. Modular multiplicative inverse function in Python - Stack Overflow

    201 Does some standard Python module contain a function to compute modular multiplicative inverse of a number, i.e. a number y = invmod(x, p) such that x*y == 1 (mod p)? Google …

  10. Why does the % (modulo, remainder) operator return different …

    Both forms mean exactly the same time, but are different representations of it. Thus both, the Python and C# results are correct! The numbers are the same in the modulo 5 arithmetic you …