I'm using python for creating a Dungeons and Dragons Character Creator, and am currently programming the weapons. I've recreated some code that has failed to work in previous similar environments, and I was wondering about a way for it to work without needing an if statement for each individual variable, so that editing for additional properties and items might be available. I'm using python for creating a Dungeons and Dr