Python join()
method concatenate two or more strings.
>>> str = "python tutorial" >>> str2 = "Perschon" >>> str3 = " -- ".join((str,str2)) >>> str3
"python tutorial -- Perschon"Let's concatenate 3 strings:
>>> str3 = "online" >>> str4 = " -- ".join((str,str2,str3)) >>> str4
"python tutorial -- Perschon -- online"