Change color range in python

what does it mean ‘it didn’t work’? can you post source code and error message?