Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I create the picture with the circles in python? I'm probably not doing this right, but this is what I have so far:

How do I create the picture with the circles in python? I'm probably not doing this right, but this is what I have so far:

from graphics import * from math import *

def main(): win = GraphWin("Sphere Plot", 320, 320) win.setBackground("white") win.setCoords(0.0, -5.0, 0.0, 5.0)

image text in transcribedimage text in transcribedimage text in transcribed

.2 Use the following Python graphics module colors colors [red, orange, yellow, green, lightskyblue, navy,violet, blackj. The circles all have radi of 1. The x coordinates of the circles centers are given by 0,2*sqrt(2),4,2*sqrt(2),0,-2*sqrt(2),-4,-2*sqrt(2)). The y coordinates of the circles center are given by { 4, 2*sqrt(2),0,-2*sqrt(2-4,- 2*sqrt(2),0,2*sqrt(2). The limits of the plot are-5 to 5 in the x and y direction. Submit a Python module lastnamelab4.py to Canvas that produces this plot

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

Step: 3

blur-text-image

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions

Question

2. Compare the sales and service departments at Auto World.

Answered: 1 week ago