I'm writing a AI program in Python and want to save time when interacting with the bot. Instead of using this code:
if "how are you" or "How are you" in talk:
perform_action()
I want to be able to interpret it even if it's not capitalize or not. If you don't what I'm saying let's say I asked the bot, "how are you?", but the bot was only programmed to answer to that question if it was said like this, "How are you?". I want to simplify the coding so I won't have to use a "or" statement. Please provide example code.