About 466,000 results
Open links in new tab
  1. python - How can I read inputs as numbers? - Stack Overflow

    Dec 8, 2013 · 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 string …

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

    633 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 - 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)

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

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

  6. Python 2.7 getting user input and manipulating as string without ...

    In Python 2 we use the raw_input() function. It waits for the user to type some input and press return and we need to store the value in a variable by casting as our desire data type.

  7. How to give jupyter cell standard input in python?

    I am trying to run a program on a jupyter notebook that accepts user input, and I cannot figure out how to get it to read standard input. For example, if I run the code with shift-enter: a = input()

  8. python - How do I read from stdin? - Stack Overflow

    How do I read from standard input (stdin)?There's a few ways to do it. sys.stdin is a file-like object on which you can call functions read or readlines if you want to read everything or you want to …

  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 - Keyboard input with timeout? - Stack Overflow

    Darn. Well, what self respecting programmer uses windows anyway? ;) For simple user input I guess it could be done with a loop around "kbhit", which detects keyboard presses, and …