About 770,000 results
Open links in new tab
  1. python - Getting user input - Stack Overflow

    Do you want the file name to come from user input or a command line argument? (e.g. python myScript.py inputfile.txt)

  2. python - How to read keyboard input? - Stack Overflow

    As blocking on keyboard input (since the input() function blocks) is frequently not what we want to do (we'd frequently like to keep doing other stuff), here's a very-stripped-down multi-threaded …

  3. python - How to get the input from the Tkinter Text Widget?

    How to get Tkinter input from the Text widget? EDIT I asked this question to help others with the same problem - that is the reason why there is no example code. This issue had been …

  4. python - How can I read inputs as numbers? - Stack Overflow

    Dec 8, 2013 · Python 2.x There were two functions to get user input, called input and raw_input. The difference between them is, raw_input doesn't evaluate the data and returns as it is, in …

  5. python - User input and command line arguments - Stack Overflow

    How do I have a Python script that can accept user input and how do I make it read in arguments if run from the command line?

  6. python - Getting a hidden password input - Stack Overflow

    By default, the password input will be fully invisible. If you want to show asterisks in place of the user typed password, use the echo_char parameter added in Python 3.14.

  7. python - How to get multiline input from the user - Stack Overflow

    In Python 3.x the raw_input() of Python 2.x has been replaced by input() function. However in both the cases you cannot input multi-line strings, for that purpose you would need to get input from …

  8. Command line input in Python - Stack Overflow

    For interactive user input (or piped commands or redirected input) Use raw_input in Python 2.x, and input in Python 3. (These are built in, so you don't need to import anything to use them; …

  9. python - Asking the user for input until they give a valid response ...

    Apr 25, 2014 · The simplest way to accomplish this is to put the input method in a while loop. Use continue when you get bad input, and break out of the loop when you're satisfied. When Your …

  10. python - How to get keyboard input in pygame? - Stack Overflow

    How to get keyboard input in pygame? Asked 12 years, 9 months ago Modified 1 year, 7 months ago Viewed 386k times