If someone can help me understand why this code is not working. It accepts my inputs for RGB values but in converting them to hexadecimal I get the following error:
val = sum((red << 16) + (green << 8) + blue) print "%s" % (hex(val)[2:]).upper()
I know the error codes are not always accurate to the problem, so I’m not 100% certain there is an issue with this line before the print statement, but there you have it. Any help is greatly appreciated.