+ 2

How to concatenate and print strings with space between them without using '+'

5th Dec 2016, 6:09 AM
Rodrigo Abreu
Rodrigo Abreu - avatar
5 Respuestas
+ 3
I wasn't asking; only commenting... 😆
5th Dec 2016, 6:30 AM
Rodrigo Abreu
Rodrigo Abreu - avatar
+ 2
You can do this using the function 'print' with the strings as parameters, like: >>> print('hello', 'world', '!') will output 'hello world !'
5th Dec 2016, 6:11 AM
Rodrigo Abreu
Rodrigo Abreu - avatar
+ 1
why do you answer your own question?😂😂
5th Dec 2016, 6:26 AM
Kamil
Kamil - avatar
+ 1
You answer your question . So funny
11th Aug 2017, 5:17 PM
wuhoukuan
0
Just separate the variables or literals with semicolon. name = Rodrigo print "Hello", name Output - Hello Rodrigo NB - Python 2 specific
5th Dec 2016, 6:50 AM
Rishi Anand
Rishi Anand - avatar