So I'm trying to see if "Sword" appears in inventory so I want it to trigger if like "Iron Sword" is in inventory or "Sword" in inventory. I've tried several ways to do this like the one below but doing the 4 space indent is a pain for every line.
inventory = ['blahblahh blah']
def code():
if "Sword" in inventory:
#blah blah code