Computer Networking: A Top-Down Approach (7th Edition)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
Bartleby Related Questions 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();

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

Transcribed Image Text:5. Rectangle with dotted lines
Transcribed Image Text:4. North -East West- South
Expert Solution
Check Mark
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
Knowledge Booster
Background pattern image
Similar questions
    SEE MORE QUESTIONS
    Recommended textbooks for you
    Text book image
    Computer Networking: A Top-Down Approach (7th Edi...
    Computer Engineering
    ISBN:9780133594140
    Author:James Kurose, Keith Ross
    Publisher:PEARSON
    Text book image
    Computer Organization and Design MIPS Edition, Fi...
    Computer Engineering
    ISBN:9780124077263
    Author:David A. Patterson, John L. Hennessy
    Publisher:Elsevier Science
    Text book image
    Network+ Guide to Networks (MindTap Course List)
    Computer Engineering
    ISBN:9781337569330
    Author:Jill West, Tamara Dean, Jean Andrews
    Publisher:Cengage Learning
    Text book image
    Concepts of Database Management
    Computer Engineering
    ISBN:9781337093422
    Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
    Publisher:Cengage Learning
    Text book image
    Prelude to Programming
    Computer Engineering
    ISBN:9780133750423
    Author:VENIT, Stewart
    Publisher:Pearson Education
    Text book image
    Sc Business Data Communications and Networking, T...
    Computer Engineering
    ISBN:9781119368830
    Author:FITZGERALD
    Publisher:WILEY