About 1,370,000 results
Open links in new tab
  1. python - Find a value in a list - Stack Overflow

    In Python 3, filter doesn't return a list, but a generator-like object. Finding the first occurrence If you only want the first thing that matches a condition (but you don't know what it is yet), it's …

  2. Examples for string find in Python - Stack Overflow

    Python might in general prefer exceptions, but many users expect there to be a non-exception-raising-find-index method as well, especially as that's how it's done in almost every other …

  3. python - How to use find () and find_all () in BeautifulSoup? - Stack ...

    Feb 19, 2020 · How to use find () and find_all () in BeautifulSoup? Asked 5 years, 11 months ago Modified 4 years, 1 month ago Viewed 45k times

  4. python - How to use to find files recursively? - Stack Overflow

    79 Starting with Python 3.4, one can use the glob() method of one of the Path classes in the new pathlib module, which supports ** wildcards. For example:

  5. python - Find the current directory and file's directory - Stack …

    How do I determine: the current directory (where I was in the shell when I ran the Python script), and where the Python file I am executing is?

  6. How to find all occurrences of a substring? - Stack Overflow

    Follow-up: How to find all occurrences of a substring in a string while ignore some characters in Python?

  7. VS Code can't find Python - Stack Overflow

    Feb 1, 2021 · 5 Go to the Visual Studio Code preferences, and under interpreter, you'll find Interpreter Path, so set that to the path of your Python installation, restart Visual Studio Code, …

  8. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  9. python - Find / Slicing Method issue - Stack Overflow

    Mar 17, 2015 · I'm doing an exercise in the python book section: 6.14 Exercises Exercise 6.5 Take the following Python code that stores a string:‘ str = 'X-DSPAM-Confidence: 0.8475' Use …

  10. python - Find the division remainder of a number - Stack Overflow

    How could I go about finding the division remainder of a number in Python? For example: If the number is 26 and divided number is 7, then the division remainder is 5. (since 7+7+7=21 and …