How to get space while we add two strings? Example: print( "HELLO"+"FREINDS"). | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to get space while we add two strings? Example: print( "HELLO"+"FREINDS").

11th Jul 2018, 8:31 AM
Bhavya Pawar
Bhavya Pawar - avatar
3 Answers
+ 5
print("Hello " + "Friends") print("Hello" + " Friends") print("Hello" + " " + "Friends")
11th Jul 2018, 8:33 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 2
In Python3, this should work too, print ("Hello" , "friends!")
11th Jul 2018, 9:36 AM
Satyam
+ 1
Thanks
11th Jul 2018, 8:34 AM
Bhavya Pawar
Bhavya Pawar - avatar