why print("hello"+"world")produces hello world why not helloworld | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

why print("hello"+"world")produces hello world why not helloworld

26th Sep 2020, 6:57 AM
Naveen
Naveen - avatar
1 Answer
+ 2
It would also print "hello world" if there is a ',' rather than a '+' separating them. print("hello", "world") # hello world
26th Sep 2020, 8:23 AM
Russ
Russ - avatar