I Haz Codes

Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Menu
not too big

Enter the code below into python. The code will display a circle which is smaller than 100 pixels. Change the code so it –

Change the ???? so it uses the python symbols for “less than or equal to”
Change the maximum size of the circle to be 200.
set the colour of the circle to be yellow.

from mrh import *
size = inputNumber("Enter a size for the circle - ")
if size ???? 100:
    circle(100,100,size)
else:
    text(100,100,"You need to enter a size below 100 pixels")


You need to log in or create an account to submit code!

Comments are closed.

Information