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

    In Python 3, it's just input() - caution : there is an input method in 2.x too, but it eval ()s the input and is therefore evil. Any way to write a prompt that can work for both? @Agostino try: input = …

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

    634 To read user input you can try the cmd module for easily creating a mini-command line interpreter (with help texts and autocompletion) and raw_input (input for Python 3+) for reading …

  3. python - What's the simplest way of detecting keyboard input in a ...

    Well, since the date of this question post, a Python library addressed this topic. pynput library, from Moses Palmer, is GREAT to catch keyboard and mouse events in a very simple way.

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

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

    Are you asking to get a keyboard press event or just for the user to enter some input?

  7. python - How to allow VS Code to take input from users? - Stack …

    The two settings above should allow you to A) Enter input inside of the integrated terminal and B) Select which python interpreter code-runner should execute easily using existing commands.

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

  9. How to read a single character from the user? - Stack Overflow

    Jan 28, 2013 · Another important detail is that if you're looking to read one character and not one byte, you should read 4 bytes from the input stream, as that's the maximum number of bytes a …

  10. python - Get a list of numbers as input from the user - Stack …

    numbers = input() print(len(numbers)) the input [1,2,3] and 1 2 3 gives a result of 7 and 5 respectively – it seems to interpret the input as if it were a string. Is there any direct way to …