This program changes the colour of the blue-ink to whatever colour the user inputs from a pre-defined array of colours.
- Black
- Blue Black
- Red
- Green
- Purple
I have used my Assignment and changed the colour of its contents to black and blue-black ink.
Input:
Output:
- Black
- Blue-Black
Instructions:
-
Add your colour name using the
elif
statement inside theink_swap
function. -
Add the respective RGB values of your desired colour inside the
elif
function to add your colour to the database. -
Optional: Add the following line —
colour != <your colour>
on Line 55 to remove the following text in Output:
Your choice is not present in our database.
Switching to Blue-Black Ink instead.
This will completely register your colour in the database.