Answered step by step
Verified Expert Solution
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)
.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
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