Can anyone help me with this exercise in python?
ASK: Create a function that accepts three integers that represent the RGB values and outputs the hex-code representation.
SAMPLE 100 200 233
SAMPLE OUTPUT #64c8e9
Can anyone help me with this exercise in python?
ASK: Create a function that accepts three integers that represent the RGB values and outputs the hex-code representation.
SAMPLE 100 200 233
SAMPLE OUTPUT #64c8e9
Use the built-in format operator
print('#%02x%02x%02x' % (100,200,233))
will output #64c8e9