Question: Evaluation: 1 0 points total - 2 points for drawing pseudocode; 4 points for correct output of loopy _ roots function; 2 points for calling
Evaluation: points total points for
drawing pseudocode; points for correct output of
loopyroots function; points for calling the function in
main; points for attaching the file
What is this chunk of code doing? Explain each line
in a discussion post with english.
def drawingaturtle, sidelen:
for i in range:
aturtle.forwardsidelen
aturtle.right
return None
After, write a function called loopyroots that takes
no parameters. Using a for loop, print the square
root of every integer between and in this
format: "integer : root". For example:
:
Call the function in main Name the file
sqrtloop.py and attach it to your discussion post.
Hints: Use math.sqrt example call:
math.sqrt to get the square root of each
integer. You will need to import math like we did
with turtle. What variable increases with every
iteration of the loop? You might want to use it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
