I have an error when trying to use contain in python.
s = u\"some utf8 words\" k = u\"one utf8 word\" if s.contains(k): print \"contains\"
Strings don't have "contain" attribute.
s = "haha i am going home" s_new = s.split(' ') k = "haha" if k in s_new: print "contains"
I guess you want to achieve this