Val Function In Python With Parameters