Question
problem a Write a function that uses turtle graphics to draw a polygon. The function should take the number of pages as a parameter.The function
problem a
Write a function that uses turtle graphics to draw a polygon. The function should take the number of pages as a parameter.The function should also take a fill color as a parameter.To draw an n-edge, the function must draw n straight lines, and for each line the function must turn the turtle 360 / n degrees.
problem b
Use the function from problem e) to draw the pattern given below.
problem c
Create a function that checks if a number a is divisible by another number b. The function should take the two numbers as parameters.The function should return True if a is divisible by b, False otherwise.(Hint: Use the modulo (%) operator).
Python Turtle GraphicsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started