Question: I need help writing this code in python. Write a function called square with two parameters, x and y. The function should then use turtle

I need help writing this code in python.

Write a function called square with two parameters, x and y. The function should then use turtle graphics to draw a filled in square of size 20 pixels at the x and y point. You will not set the color of the turtle in the function, that will be done in the main program below. You need to use a loop in your function solution.

Write a program that will call the square function and print 20 random colored squares at random x/y points on the turtle graphics screen. The random x and y points should be between -100 and 100. ou need to use a loop in your main program solution. Your output should look similar to this Sample Run: I need help writing this code in python. Write a function called

Python Turtle Graphics Python Turtle Graphics

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!