Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python join string with common string
Zaqq
Programming language:
Python
2021-06-30 16:26:26
0
Q:
python join string with common string
Art
Code:
Python
2021-06-22 14:39:05
def merge(s1, s2): i = 0 while not s2.startswith(s1[i:]): i += 1 return s1[:i] + s2
-1
Tags
string
python
Related
join two set in python
how to concat join 2 strings in python
find common string in two strings python
python join dict
python join list
.join in python
python join
python join paths
join function in python
print multiple strings in python
join two dictionaries python
how to join a list of characters in python
python subtract 2 strings
concatenate two dictionnaries python
python join list to string
python join items in list
merge two list of dictionaries python with string
join lists python
New to Communities?
Join the community