Let's say I have:
name_list = ["gxrgirl", "Octagon", "Nimble Momonga"]
feminine_words = ["girl", "princess", "wifey", "woman", "queen"]
I want to be able to detect feminine words within the name_list
by using the feminine_words
list.
So for example:
I would be able to detect the "girl" string within gxrgirl
and have some output saying: female
I read somewhere that I can use from builtins import any
, but I'm not sure how to approach it.