Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions

Question

1. Define mass and mediated communication

Answered: 1 week ago