About 533,000 results
Open links in new tab
  1. What does colon equal (:=) in Python mean? - Stack Overflow

    Mar 21, 2023 · 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 …

  2. python - Why do some functions have underscores - Stack Overflow

    May 24, 2024 · 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 convention used …

  3. Using or in if statement (Python) - Stack Overflow

    Using or in if statement (Python) [duplicate] Asked 7 years, 7 months ago Modified 10 months ago Viewed 153k times

  4. What is Python's equivalent of && (logical-and) in an if-statement?

    Mar 21, 2010 · There is no bitwise negation in Python (just the bitwise inverse operator ~ - but that is not equivalent to not). See also 6.6. Unary arithmetic and bitwise/binary operations and …

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

    Jun 17, 2011 · 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 …

  6. python - How do I escape curly-brace ( {}) characters characters in …

    It is the first result that comes up when you google how to put curly braces in python f-strings though, and yes I agree it's not pretty but sometimes you just need it.

  7. python - Errno 13 Permission denied - Stack Overflow

    Jul 16, 2020 · For future searchers, if none of the above worked, for me, python was trying to open a folder as a file. Check at the location where you try to open the file, if you have a folder …

  8. Pipe character in Python - Stack Overflow

    In Python 3.9 - PEP 584 - Add Union Operators To dict in the section titled Specification, the operator is explained. The pipe was enhanced to merge (union) dictionaries.

  9. mean in Python function definitions? - Stack Overflow

    Jan 17, 2013 · In Python 3.5 though, PEP 484 -- Type Hints attaches a single meaning to this: -> is used to indicate the type that the function returns. It also seems like this will be enforced in …

  10. What Does the python -v Command Do - Stack Overflow

    May 15, 2017 · The python -v command is used to run the Python interpreter in verbose mode. When this command is executed, it displays detailed information about the Python program's …