Enter the code below into python. The code will ask what colour you want to set a square to be. Change the code so it –
Change the ???? to check to see if col is blue.
Add two more if statements to check for yellow and green.
from mrh import * col = input("do you want red or blue? ") if col == "red": colour("red") if ??????: colour("blue") square(100,100,50)
You need to log in or create an account to submit code!