Question: . setPos ( turta , x , y ) : the function should accept a turtle object turta and the coordinates x and y (

. setPos(turta, x, y): the function should accept a turtle object turta and the coordinates x and y (variables). This function sets the position of the turtle to the coordinates x and y without leaving any trace. 2. hexagon(turta, hexa_color, border_color): the function should accept a turtle object turta that draws a hexagon filled with hexa_color color and with a border of border_color color. Each side is of 50 units. 3. square(turta, square_color, border_color): the function should accept a turtle object turta that draws a square filled with square_color color and with a border_color border. Each side is of 90 units. 4. circle(turta, circle_color, border_color): the function should accept a turtle object turta that draws a circle filled with circle_color color and with a border_color border. 5. pattern(turta, hexa_color, circle_color, square_color, border_color): the function should accept a turtle object turta that draws a hexagon filled with hexa_color color first followed by a circle filled with circle_color then followed by a square filled with square_color. 6. Based on what you have learned in this course and using the appropriate functions defined in above, you are asked to implement a python program (i.e. main()) that draws the below diagram (see Run#1 and Run #2). Please be aware that your program should commence by prompting the user to input the colors for the shapes and subsequently, the drawing window (canvas) will open, initiating the turtle'sDrawing process. not allowed to use (for,while,ect contrastEnter the color of square: blue
Enter the color of shape borders: yellow
Sample Outputs:
Run #2:
Enter the color of hexagon: blue
Enter the color of circle: purple
Enter the color of square: yellow
Enter the color of shape borders: red
 . setPos(turta, x, y): the function should accept a turtle object

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!