About 50 results
Open links in new tab
  1. How do I do simple user input in python? - Stack Overflow

    25 You can use the input() function to prompt the user for input, and float to convert the user input from a string to a float:

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

  3. 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 string form. …

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

    input('Enter your input:') if you use Python 3. And if you want to have a numeric value, just convert it:

  5. python - Creating if/else statements dependent on user input - Stack ...

    Creating if/else statements dependent on user input Asked 11 years, 3 months ago Modified 1 year, 10 months ago Viewed 51k times

  6. How do I create an input box with Python? - Stack Overflow

    Jan 1, 2014 · I want to create an on-screen input box that a user can interact with. The user would see a window with an input field they can click with the mouse. The user could type or erase text in the field...

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

    635 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 a line of text …

  8. Python - User input data type - Stack Overflow

    Apr 6, 2016 · Python - User input data type Asked 9 years, 10 months ago Modified 9 years, 10 months ago Viewed 16k times

  9. python - How to let the user select an input from a finite list ...

    How to let the user select an input from a finite list? Asked 9 years, 8 months ago Modified 2 years, 5 months ago Viewed 125k times

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