52662/input-vs-sys-stdin-read
import sys s1 = input() s2 = sys.stdin.read(1) #type "s" for example s1 == "s" #False s2 == "s" #True
How can I make input() to work properly? I tried to encode/decode s1, but it doesn't work.
Hi Alex, You could use something like this: import ...READ MORE
In the upper version of Python 3.x, raw_input was ...READ MORE
can you give an example? READ MORE
To read user input you can try the cmd module for ...READ MORE
You missed a few login data forms, ...READ MORE
You want to avoid interfering with this ...READ MORE
raw_input() was renamed to input() so now input() returns the exact string ...READ MORE
readline function help to read line in ...READ MORE
File() has been removed since Python 3.0 ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.