Write program in Python. Use one of the following shapes.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write program in Python.

Use one of the following shapes.

Example code:

import turtle;

turtle.shape("turtle");

 

turtle.speed(10);

turtle.bgcolor("powder blue");

turtle.pensize(5);

turtle.pencolor("green");

turtle.fillcolor("red");

turtle.begin_fill();

#-------------------------------------------------------------------------------------------------------------------------------------------------------

turtle.left(-45);

turtle.forward(250);

turtle.left(90);

turtle.forward(250);

turtle.left(90);

turtle.forward(250);

turtle.left(90);

turtle.forward(250);

#-------------------------------------------------------------------------------------------------------------------------------------------------------

turtle.forward(250);

turtle.right(90);

turtle.forward(250);

turtle.right(90);

turtle.forward(250);

turtle.right(90);

turtle.forward(250);

 

turtle.hideturtle();

turtle.end_fill();

#-------------------------------------------------------------------------------------------------------------------------------------------------------

turtle.penup();

turtle.goto(-235, -20);

turtle.pencolor("lavender blush");

turtle.write("DIAMOND", font = ("Times New Romans", "25", "bold"))

#-------------------------------------------------------------------------------------------------------------------------------------------------------

turtle.penup();

turtle.goto(110, -20);

turtle.pencolor("white");

turtle.write("DIAMOND", font = ("Times New Romans", "25", "bold"))

turtle.done();

#-------------------------------------------------------------------------------------------------------------------------------------------------------

5.
Rectangle with dotted lines
Transcribed Image Text:5. Rectangle with dotted lines
4.
North
-East
West-
South
Transcribed Image Text:4. North -East West- South
Expert Solution
Step 1
import turtle
# object __object for turtle
__object = turtle.Turtle()
# set thikness for each ring
__object.pensize(5)
__object.color("blue")
__object.penup()
__object.goto(-110, -25)
__object.pendown()
__object.circle(45)
__object.color("black")
__object.penup()
__object.goto(0, -25)
__object.pendown()
__object.circle(45)
__object.color("red")
__object.penup()
__object.goto(110, -25)
__object.pendown()
__object.circle(45)
__object.color("yellow")
__object.penup()
__object.goto(-55, -75)
__object.pendown()
__object.circle(45)
__object.color("green")
__object.penup()
__object.goto(55, -75)
__object.pendown()
__object.circle(45)


#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To begin, type "Rings" in the left shape of the turtle. penup(); # moves the pen up turtle.goto (-115, -27); # moves the pen to positions -115 for the x axis, -27 for the y axis turtle. pencolor ("lavender blush"); turtle.write("RINGS", font = ("Times New Romans", "14", "bold")) - - - — - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

# turtle.goto (112, -24) shifts the pen up;

# shifts the pen to 112 for the x axis and -24 for the y axis. turtle. Turtle; pencolor ("white"). write("DIAMOND," font = ("Times New Romans," 14," bold")) turtle. done(); ——

#END
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY