About 51 results
Open links in new tab
  1. Examples for string find in Python - Stack Overflow

    Jul 7, 2013 · 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 …

  2. Python string find() method - Stack Overflow

    Jul 19, 2017 · Python find (sub) method return the lowest index where the substring sub is found and return -1 if its not. In first piece of code, name.find ("Sac") returns "0", because index of …

  3. How to get the position of a character in Python? - Stack Overflow

    Feb 19, 2010 · 6 If you want to find the first match. Python has a in-built string method that does the work: index ().

  4. python - Find a value in a list - Stack Overflow

    I am more and more dissiapointed with python 'functional' capabilities. In haskell there is find function in Data.List module that doing exactly that. But in python it's not and it's to small to …

  5. python - Como manipular strings com ".find" - Stack Overflow em …

    Oct 25, 2017 · Eu posso usar o ".find" para fazer o programa buscar alguma palavra dentro de um texto digitado e dizer se existe ou não existe?(true or false) e em que linha do texto está …

  6. 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?

  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. What is the Python 3 equivalent of find ()? - Stack Overflow

    To use these functions, include the statement from string import * at the beginning of your file. This will allow you to use Python string functions. In particular, if you want to find the starting …

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

  10. Find full path of the Python interpreter (Python executable)?

    Apr 7, 2010 · How do I find the full path of the currently running Python interpreter from within the currently executing Python script? See How do I check which version of Python is running my …