0

Concatenate

How to concatinate two same or different strings

5th Apr 2018, 7:43 PM
Sankalp Boradkar
Sankalp Boradkar - avatar
3 ответов
+ 3
a = "Hello" b = "World!" print (a, b) print (a+ b) "," adds a space in between while "+" does not.
5th Apr 2018, 7:49 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
0
with different data types ex. if I want to print sum is : 10
5th Apr 2018, 7:55 PM
Sankalp Boradkar
Sankalp Boradkar - avatar
0
a = "sum is :" b = 10 print(a,b)
5th Apr 2018, 8:02 PM
Markus Kaleton
Markus Kaleton - avatar