Why does it print only hello when u input 'hello world'?white spaces are not allowed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why does it print only hello when u input 'hello world'?white spaces are not allowed?

4th Aug 2016, 1:28 PM
Bollamma P.K
Bollamma P.K - avatar
4 Answers
+ 1
I have this same problem @Sam Sharp i think he means when the code asks for input and you type in "Hello World" then print it, only "Hello" prints.
25th Aug 2016, 1:14 AM
Michael
+ 1
@Michael yeah only "hello" prints even when you type "hello world"
25th Aug 2016, 2:02 AM
Bollamma P.K
Bollamma P.K - avatar
0
You should type this code, >>>print('Hello world') Hello world I think it would work.
4th Aug 2016, 4:14 PM
Pawel Dzikowicz
Pawel Dzikowicz - avatar
0
it doesn't?
9th Aug 2016, 9:45 AM
Sam Sharp
Sam Sharp - avatar