Python join Function

Python join() method concatenate two or more strings.

>>> str = "python tutorial"
>>> str2 = "EndMemo"
>>> str3 = " -- ".join((str,str2))
>>> str3
"python tutorial -- EndMemo"
Let's concatenate 3 strings:
>>> str3 = "online"
>>> str4 = " -- ".join((str,str2,str3))
>>> str4
"python tutorial -- EndMemo -- online"




















endmemo.com © 2024  | Terms of Use | Privacy | Home