Question: in Python 2. Write a function named tris that uses turtle graphics and the function tri in question 11A to draw a sequence of tri's

in Python

2.

in Python 2. Write a function named tris that uses turtle graphics

Write a function named tris that uses turtle graphics and the function tri in question 11A to draw a sequence of tri's of specified size and rotation. The function tris takes 5 parameters: 1) t, a turtle used for drawing 2) initSize, the length of a line in the first tri 3) ratio, a floating point number greater than 1.0 that is the ratio of the length of the lines of successive tri's 4) rotation, the angle that each tri is rotated counterclockwise relative to the previous tri 5) num, the number of tri's to draw If tris is called by the following code, this would be correct graphical output import turtle s = turtle.screen() Shelly = turtle,Turtle() tris(shelly, 100, 1.2, 30, 4) Write a function named tris that uses turtle graphics and the function tri in question 11A to draw a sequence of tri's of specified size and rotation. The function tris takes 5 parameters: 1) t, a turtle used for drawing 2) initSize, the length of a line in the first tri 3) ratio, a floating point number greater than 1.0 that is the ratio of the length of the lines of successive tri's 4) rotation, the angle that each tri is rotated counterclockwise relative to the previous tri 5) num, the number of tri's to draw If tris is called by the following code, this would be correct graphical output import turtle s = turtle.screen() Shelly = turtle,Turtle() tris(shelly, 100, 1.2, 30, 4)

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!