Is there anything wrong w/ my code bit?
Just asking if there's anything that can be fixed/improved upon in my recent code bit - every "bit" helps. https://code.sololearn.com/cqMf2g23C4e1/?ref=app
I get a zero division error when any other color than the ones included is used as input. You might try and make a default case
I can't understand what's the code objective. Anyway, you can change the list and the nested list for a dictionary.