Duplicate Function In Python With Parameters