Match two string : Append : String PYTHON examples


PYTHON examples » String » Append »

 

Match two string


 

seq1 = "spam" 
seq2 = "scam" 

res = []                                
for x in seq1:                          
    if x in seq2:                       
        res.append(x)                   
print res 

   
  



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo String
» Append