Example:
Input: str1 = "Hello" str2 = "World" str3 = str1 + ' ' + str2 Output: str3 = "Hello World"
Program:
# Python program of concatenate operator # input strings str1 = "Hello" str2 = "World" # concatenate and assign in another string str3 = str1 + ' ' + str2 # print strings print "str1: ",str1 print "str2: ",str2 print "str3: ",str3
Output
str1: Hello str2: World str3: Hello World
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer