Python Program to concatenate two strings (Using format() function)
# Python program to show
# string concatenation
str1 = "Hello"
str2 = "JavaTpoint"
# format function is used here to
# concatenate the string
print("{} {}".format(str1, str2))
# store the result in another variable
str3 = "{} {}".format(str1, str2)
print(str3)
Output:
Hello JavaTpoint
Hello JavaTpoint
