c) Use a combination of the turtle.penup(), turtle.goto(,), and turtle.pendown() commands to eliminate the line drawn from the origin to the first ellipse and to eliminate the line drawn from the first ellipse to the second ellipse. Take a screenshot of your code and output. 5:33 trinket.io main.py 1 import turtle < > 2 import math 3 4 a=150 5 b=90 6 7 Draft saved + 10 11 12 13 8 for i in range(360): 9 t-i (math.pi/180) x=a*math.cos(t) y=b*math.sin(t) turtle.goto(x,y) 14 a=80 15 b=100 PENZION22222 16 17 18 19 20 21 for i in range(360): ti (math.pi/180) x=a*math.cos(t) y=b*math.sin(t) turtle.goto(x,y) G W e CD σ a 10 B S 123 A V Done r t yui ° р d f X C g hjk k > bn m ☐ ☑ N space return OH

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
Hi I'm using turtle(trinket.io) and I'm having trouble explaining what happens with each Line and part C.
c) Use a combination of the turtle.penup(), turtle.goto(,), and turtle.pendown() commands to
eliminate the line drawn from the origin to the first ellipse and to eliminate the line drawn from the
first ellipse to the second ellipse. Take a screenshot of your code and output.
Transcribed Image Text:c) Use a combination of the turtle.penup(), turtle.goto(,), and turtle.pendown() commands to eliminate the line drawn from the origin to the first ellipse and to eliminate the line drawn from the first ellipse to the second ellipse. Take a screenshot of your code and output.
5:33
trinket.io
main.py
1 import turtle
< >
2
import math
3
4 a=150
5
b=90
6
7
Draft saved
+
10
11
12
13
8 for i in range(360):
9 t-i (math.pi/180)
x=a*math.cos(t)
y=b*math.sin(t)
turtle.goto(x,y)
14 a=80
15 b=100
PENZION22222
16
17
18
19
20
21
for i in range(360):
ti (math.pi/180)
x=a*math.cos(t)
y=b*math.sin(t)
turtle.goto(x,y)
G
W
e
CD
σ
a
10
B
S
123
A V Done
r
t
yui
° р
d f
X C
g hjk k
>
bn m
☐
☑
N
space
return
OH
Transcribed Image Text:5:33 trinket.io main.py 1 import turtle < > 2 import math 3 4 a=150 5 b=90 6 7 Draft saved + 10 11 12 13 8 for i in range(360): 9 t-i (math.pi/180) x=a*math.cos(t) y=b*math.sin(t) turtle.goto(x,y) 14 a=80 15 b=100 PENZION22222 16 17 18 19 20 21 for i in range(360): ti (math.pi/180) x=a*math.cos(t) y=b*math.sin(t) turtle.goto(x,y) G W e CD σ a 10 B S 123 A V Done r t yui ° р d f X C g hjk k > bn m ☐ ☑ N space return OH
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education