I can't seem to get the input to output more the one word what am I doing wrong | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I can't seem to get the input to output more the one word what am I doing wrong

23rd Jun 2016, 7:31 AM
Hamid Ibrahim
Hamid Ibrahim - avatar
11 Answers
+ 1
Use this : print("Enter a line : ",end="") Line=str(input()) print("The Line is : {0}.".format(Line))
26th Jun 2016, 9:43 PM
Aakash Vyas
Aakash Vyas - avatar
0
Please describe your question precisely.
23rd Jun 2016, 2:40 PM
Bruce Lee
Bruce Lee - avatar
0
when the pop up appears saying the programme needs an input. I tried typing in a short sentence but it only outputs the first word of the sentence. How can I get it to out put the whole sentence I wrote
23rd Jun 2016, 2:57 PM
Hamid Ibrahim
Hamid Ibrahim - avatar
0
sounds like you need something that will iterate through the list.
24th Jun 2016, 2:52 AM
Kwan H Yee
Kwan H Yee - avatar
0
Me pasa lo mismo
24th Jun 2016, 11:05 PM
Eduardo Alvear
Eduardo Alvear - avatar
0
post your code?
25th Jun 2016, 6:08 AM
Colin Butler
Colin Butler - avatar
0
same problem here
25th Jun 2016, 4:22 PM
May Ng
May Ng - avatar
0
same here
30th Jun 2016, 2:14 PM
Mrinalini madhusudan
Mrinalini madhusudan - avatar
0
Hi guys, I am facing two problems: 1) input() function is taking first word. Doesn't take blank space and words after that. 2) I was trying to use input() function to take two user inputs in different variables. It takes first one and throw error in 2nd input().. if I comment 1st input(), the 2nd input() is working fine. I am sure there is no syntactical issues. pls help!
8th Jul 2016, 7:10 AM
Dibyendu Maitra
Dibyendu Maitra - avatar
0
same problem... i guess this is the problem with the code playground itself
10th Jul 2016, 11:56 AM
Anuj Pahade
Anuj Pahade - avatar
0
s = input("Enter something please: ") print(s) same problem with this code, when I run it an window pops up asking for input, and when I type a sentence, it only displays the first word in the output
14th Jul 2016, 9:22 AM
Sari Abed
Sari Abed - avatar