+ 1

what's the problem ?

s = input("Enter something please: ") print(s) I run the code , and I input "my name is" ... but after I submit it , it just show "my" how can I save " " (space) in input ?

14th Jul 2016, 4:37 PM
hassan moradnezhad
hassan moradnezhad - avatar
6 Respostas
+ 4
instead of input use raw_input
14th Jul 2016, 6:55 PM
Sathyanarayana Hadadi
Sathyanarayana Hadadi - avatar
+ 3
use latest Python..your code is perfect..maybe the version is outdated
19th Jul 2016, 6:46 PM
Krutarth Makwana
Krutarth Makwana - avatar
+ 2
s= str(input("Enter something please: ") print(s) Try this code!
15th Jul 2016, 1:44 AM
sundar
sundar - avatar
+ 2
Are you using Python 2 or 3?
15th Jul 2016, 7:26 PM
blabla blabla
blabla blabla - avatar
+ 2
You can save your input as a string then, like @sundar said, and then print the string value.
15th Jul 2016, 7:34 PM
blabla blabla
blabla blabla - avatar
+ 1
15th Jul 2016, 7:31 PM
hassan moradnezhad
hassan moradnezhad - avatar