RGB colours

Report a typo

According to the RGB model, red, green, and blue can be added together in various ways to create different colors. Assume you have a list of the following colors and their corresponding RGB values:

R G B
Purple 160 32 255
Light Blue 80 208 255
Yellow 255 224 32

Write a program that takes the name of one of these colors as input and returns its appropriate RGB values.

Sample Input 1:

Purple

Sample Output 1:

(160, 32, 255)
Write a program in Python 3
colors = ...
___

Create a free account to access the full topic