Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python 3.6 - I need help with PART B which is a CONTINUATION of PART A. I provide work for Part A. Thank you. import
Python 3.6 - I need help with PART B which is a CONTINUATION of PART A. I provide work for Part A. Thank you.
import turtle def hemispheres(t, radius): #called function t.circle(radius,360) t.left(90) t.forward(2*radius) s = turtle.Screen() aTurt= turtle.Turtle() hemispheres(aTurt, 100) #calling the function
Question 11A (6 points) Write a function named hemispheres that uses turtle graphics to draw a circle divided into two halves. The function hemispheres takes two parameters: 1. t, a turtle that is used for drawing 2. radius, an integer that is the radius of the circle The turtle t is initially on the edge of the circle at the point that the dividing line should be drawn. The function hemispheres should exit with t in its initial location and orientation. Do not make any assumptions about the initial up/down state of the turtle. The following is correct sample input and output. import turtle s = turtle . Screen() aTurt = turtle . Turtle() hemispheres(aTurt,100)
Step 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