RGB into color names
How to turn RGB to color names. Takes a tuple as an argument returns "red", "green", "blue", "green", "black", "yellow", "black" or "pink" Each color should have a little bit of range. Dark gray would be same as black etc...
I really like this idea. I suppose you would have to define where the differences are. For example, (255, 0, 0) is of course red, and when the green and blue values raise, the color will be closer to pink. So you’d have to decide exactly how high the green and blue values can be before the color is no longer considered “red”, but “pink”. High red and green values create yellow (higher blue neutralizes the yellow), etc. Or maybe if all three values are the same, then values under 51 are black, 51-204 would be gray, and 205-255 would be white. It might be kinda complex to implement, but maybe this could steer you in the right direction.
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
Python palindrome challenge.
Number of Ones ( C++ ) question!