See More

Python program to Split a string based on a delimiter and join the string using another delimiter. Split a string can be quite useful sometimes, especially when you need only certain parts of strings. <\/p>

A simple yet effective example is splitting the First-name and Last-name of a person. Another application is CSV(Comma Separated Files). We use split to get data from CSV and join to write data to CSV. <\/p>

In Python, we can use the function split() to split a string and join() to join a string. For detailed article on split() and join() functions, refer these : split() in Python and join() in Python.<\/p>

Program to split and join a string : https:\/\/www.geeksforgeeks.org\/python-program-split-join-string\/<\/a><\/p>\",\"source\":\"https:\/\/videos.geeksforgeeks.org\/hls\/a8ce22e4bb84f76aa9fcc573a181c480gfg-PythonProgrammingTutorialProgramtosplitandjoinastringGeeksforGeeks20220630153439.m3u8\",\"category\":[{\"term_id__id\":10,\"term_id__term_name\":\"Python\",\"term_id__term_type\":1,\"term_id__slug\":\"python\"},{\"term_id__id\":264,\"term_id__term_name\":\"Python-program\",\"term_id__term_type\":2,\"term_id__slug\":\"python-program\"}],\"meta\":{\"thumbnail\":\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/Programtosplitandjoinastring\/Programtosplitandjoinastring20220707134034-small.png\",\"largeThumbnail\":\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/Programtosplitandjoinastring\/Programtosplitandjoinastring20220707134034.jpg\",\"likes\":0,\"views\":17830,\"isFeatured\":0,\"isPremium\":0,\"isPublic\":0,\"format\":\"video\/mp4\",\"revision\":{}},\"time\":\"07\/07\/2022\",\"subtitle\":\"https:\/\/videos.geeksforgeeks.org\/subtitles\/PythonProgrammingTutorialProgramtosplitandjoinastringGeeksforGeeks20220630153439.vtt\",\"duration\":122,\"course_link\":null,\"video_schema\":{\"@context\":\"https:\/\/schema.org\",\"@type\":\"VideoObject\",\"name\":\"Program to split and join a string\",\"description\":\"Python program to Split a string based on a delimiter and join the string using another delimiter. Split a string can be quite useful sometimes, especially when you need only certain parts of strings. nbspA simple yet effective example is splitting the First-name and Last-name of a person. Another application is CSV(Comma Separated Files). We use split to get data from CSV and join to write data to CSV. nbspIn Python, we can use the function split() to split a string and join() to join a string. For detailed article on split() and join() functions, refer these split() in Python and join() in Python.Program to split and join a string httpswww.geeksforgeeks.orgpython-program-split-join-string\",\"thumbnailUrl\":[\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/Programtosplitandjoinastring\/Programtosplitandjoinastring20220707134034.jpg\",\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/Programtosplitandjoinastring\/Programtosplitandjoinastring20220707134034-seo.png\",\"https:\/\/media.geeksforgeeks.org\/geeksforgeeks\/Programtosplitandjoinastring\/Programtosplitandjoinastring20220707134034-small.png\"],\"uploadDate\":\"2022-07-07T13:40:50Z\",\"duration\":\"PT0H2M2S\",\"contentUrl\":\"https:\/\/www.geeksforgeeks.org\/videos\/program-to-split-and-join-a-string\/\"}}]"); Split and Join a String in Python - GeeksforGeeks