[Tutor] Problem solving
Robin Williamson
desaumarez at yahoo.fr
Sun Nov 15 07:15:46 EST 2020
if b "or" v<r
print("rouge"):
elif v"or"r<b
print("bleu")
else:
print("vert")I am trying to write a program that will tell me what the dominant colour is in a photo, either green, red or blue.I have tried to write the above program but it seems I have'nt understood something.Any help and explanations would be greatly appreciated.ThanksRobinYou may have noticed that I'm using rouge for red, vert for green, and bleu for blue, I'm in France!
More information about the Tutor
mailing list