About 627,000 results
Open links in new tab
  1. How to represent an infinite number in Python? - Stack Overflow

    Oct 15, 2011 · How can I represent an infinite number in python? No matter which number you enter in the program, no number should be greater than this representation of infinity.

  2. python - Is there a difference between "==" and "is"? - Stack …

    Since is for comparing objects and since in Python 3+ every variable such as string interpret as an object, let's see what happened in above paragraphs. In python there is id function that shows …

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

  4. What does %s mean in a Python format string? - Stack Overflow

    Mar 1, 2022 · Python supports formatting values into strings. Although this can include very complicated expressions, the most basic usage is to insert values into a string with the %s …

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

    May 24, 2024 · This "underscoring" seems to occur a lot, and I was wondering if this was a requirement in the Python language, or merely a matter of convention? Also, could someone …

  6. How to generate HTML documents in Python - Stack Overflow

    Dec 11, 2024 · In Python, how can I generate an HTML document? I don't want to manually append all of the tags to a giant string and write that to a file. Is there another way of doing this?

  7. syntax - Python integer incrementing with ++ - Stack Overflow

    In Python, you deal with data in an abstract way and seldom increment through indices and such. The closest-in-spirit thing to ++ is the next method of iterators.

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

  9. What does [:-1] mean/do in python? - Stack Overflow

    Mar 20, 2013 · Working on a python assignment and was curious as to what [:-1] means in the context of the following code: instructions = f.readline()[:-1] Have searched on here on S.O. …

  10. python - Pythonic way to combine for-loop and if-statement

    That's how it is... don't overcomplicate things by trying to simplify them. Pythonic does not mean to avoid every explicit for loop and if statement.