The raw input API provides a stable and robust way for applications to accept raw input from any HID (Human Interface Devices), including the keyboard and mouse.
Questions tagged [raw-input]
623 questions
-4
votes
1 answer
raw_input in python, output wrong
I am a freshman in python, and faced a problem of raw_input. see bellow
Welcome to the game, Hangman!
I am thinking of a word that is 1 letters long.
-------------
you have 8 guesses left.
Available letters: abcdefghijklmnopqrstuvwxyz
please give a…

user1532868
- 25
- 2
- 9
-4
votes
1 answer
JYTHON/PYTHON - raw_input losing first character of string
I am reading in a name as you will see below, however regardless of what you type in it loses the first character, for example, 'Bob' will become 'ob'. Because of this I cannot compare the user's input to what they are searching for, breaking the…

jcockle2
- 13
- 4
-5
votes
1 answer
Need help in entering integers into python and more
I need help in writing a program that allows the user to enter 10 different integers. If the user tries to enter an integer that has already been entered, the program will alert the user immediately and prompt the user to enter another integer. When…

steven okeya
- 7
- 1
-5
votes
1 answer
Ask the user for its name using raw_input
How do I write a program that uses raw_input to prompt a user for their name and then welcomes him.
For example that asks: Enter your name, and then the program continues welcoming the user with Hello NAME_OF_THE_USER

New2R
- 13
- 1
- 1
- 6
-5
votes
1 answer
How to read input in python using raw_input
Sample Input (in Plaintext)
1
1 2
Description- The first line contains an integer t, denoting the number of test cases. Next t lines contain two integers, a and b separated by a space.
My question is how can I load these inputs into variables…

user2771151
- 411
- 1
- 7
- 18
-5
votes
1 answer
I Don't Know What is argv and what's different with raw_input()?
I Learn Python From "Learn Python the Hard way"
I don't know what is argv !!
(please explain argv with Example and text)
Question 2:
What is Different between raw_input & argv ?

Shayan
- 1
- 4
-6
votes
2 answers
How to create a UI in Python
So I have the code...
name = raw_input("Full Name: ")
And that is supposed to allow me to type in a name and then use that name to activate certain "if" statements. However, I want to have the program open a window, like a very simple GUI, where I…

Max Rogers
- 115
- 1
- 8
-6
votes
5 answers
How to treat raw_input variables as integers
# Mit Print kann ich das Programm den Wert einer Variablen ausgeben/anzeigen lassen
print 'Please choose a number'
a = raw_input(int)
print 'Please choose a different number'
b = raw_input(int)
print 'Please again choose a different…

Marcel Iseli
- 11
- 1
- 3