+ 1

Why cant i read string inpit from user??

s= input("enter string") print(s)

12th Feb 2017, 9:33 AM
sharath kumar shetty
5 Respuestas
+ 1
instead of input if i type raw_input i will get the output... otherwise it pops out an error msg
12th Feb 2017, 12:25 PM
sharath kumar shetty
0
Any error messages? I am running 3.5.2 and your code works if those are double quotes. Have you tried saving as a file and running it?
12th Feb 2017, 12:16 PM
Mike Allen
Mike Allen - avatar
0
In addition if you are in the shell, you have to press enter before the print(s) statement. If you have done all this then I do not know. Sorry
12th Feb 2017, 12:18 PM
Mike Allen
Mike Allen - avatar
- 1
I dunno. Try this type of question: "I have python version X, OS type- Q, I have error Y, interpretor error text is Z, I googled W but didnt find out."
12th Feb 2017, 10:02 AM
Leshark
Leshark - avatar
- 1
So you have old python version, congrat!
12th Feb 2017, 2:21 PM
Leshark
Leshark - avatar