jeudi 19 décembre 2019

How to check if any word of string match another string

Im tryin to find some function in Python which can help me with finding some word-matches of two different strings. For example we have 2 strings :

  1. "I am playing basketball everyday"
  2. "basketball is the worst game ever"

And i want this function to return true if "basketball" was found in both strings.

Aucun commentaire:

Enregistrer un commentaire