+ 1

Question

hey guys, can you help me in figure out why the "name" variable is concatenated with the first print function. name = input("hey there whats your name?") print("hey"+" "+name+".") print("how are you doing?")

29th Jun 2018, 9:13 AM
Quincy James
Quincy James - avatar
2 Answers
+ 2
use \n after the question mark of the input text then " hey name." will be in next line
29th Jun 2018, 9:20 AM
Matthias
Matthias - avatar
0
thanks Matthias.
1st Jul 2018, 9:51 AM
Quincy James
Quincy James - avatar