String concatenation use "+"
, "+="
operators or join()
Method.
>>> str = "python" >>> str += " tutorial" >>> str
"python tutorial"
>>> str2 = "Perschon" >>> str3 = " -- ".join((str,str2)) >>> str3
"python tutorial -- Perschon"
>>> str = "python" >>> str2 = " tutorial" >>> str3 = str + " " + str2 >>> str3
'python tutorial'