Arbitrary Function In Python Practice Question