python subtract 2 strings

Solutions on MaxInterview for python subtract 2 strings by the best coders in the world

showing results for - "python subtract 2 strings"
Liam
27 Oct 2019
1def substract(a, b):                              
2    return "".join(a.rsplit(b))