SyntaxFix
Write A Post
Hire A Developer
Questions
this is not a regex solution.
alist={"I love ":""He loves"","Je t'aime ":"Il aime","Ich liebe ":"Er liebt"} for k in alist.keys(): if k in statement: print alist[k],statement.split(k)[1:]