1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Evgesh-ka [11]
2 years ago
13

Write a program to move the Turtle based on the user’s request. Display a menu with options for the user to choose. Use the foll

owing guidelines to write your program.
1. Create a menu that gives the user options for moving the Turtle. The menu should contain letters or numbers that align with movements such as forward, backward, and/or drawing a particular pattern.

2. Use at least one if-else or elif statement in this program. It should be used to move the Turtle based on the user's input.

3. A loop is optional but may be used to ask the user to select multiple choices.

4. Use one color other than black.
Computers and Technology
1 answer:
Strike441 [17]2 years ago
7 0

Answer:

#import turtle

import turtle

 

# set screen

Screen = turtle.Turtle()

 

# decide colors

cir= ['red','green','blue','yellow','purple']

 

# decide pensize

turtle.pensize(4)

 

# Draw star pattern

turtle.penup()

turtle.setpos(-90,30)

turtle.pendown()

for i in range(5):

   turtle.pencolor(cir[i])

   turtle.forward(200)

   turtle.right(144)

 

turtle.penup()

turtle.setpos(80,-140)

turtle.pendown()

 

# choose pen color

turtle.pencolor("Black")

# importing turtle module

import turtle

 

# number of sides

n = 10

 

# creating instance of turtle

pen = turtle.Turtle()

 

# loop to draw a side

for i in range(n):

   # drawing side of  

   # length i*10

   pen.forward(i * 10)

 

   # changing direction of pen  

   # by 144 degree in clockwise

   pen.right(144)

 

# closing the instance

turtle.done()

turtle.done()

Explanation:

You might be interested in
A computer ____ is the amount of data (typically measured in bits or bytes) that a cpu can manipulate at one time.
Paul [167]
A computers millions of transistors can manipulate the data
3 0
3 years ago
Small data files that are deposited on a user's hard disk when they visit a website are called _______.
IrinaK [193]
The answer is cookies
7 0
3 years ago
Read 2 more answers
B) Use an Excel function to find: Note: No need to use Excel TABLES to answer these questions! 6. The average viewer rating of a
nydimaria [60]

Answer:

Use the average function for viewer ratings

Use the min function for the earliest airing year

Explanation:

The average function gives the minimum value in a set of data

The min function gives the lowest value in a set of data

4 0
3 years ago
What does this road sign mean?
serious [3.7K]

Answer:

Speed limit 50 ahead

Explanation:

6 0
3 years ago
Read 2 more answers
Strengths and weaknesses about esport
grandymaker [24]

Answer:

you can practice and make money it can also do bad on your eyes ik cuz i do esports

Explanation:

8 0
3 years ago
Other questions:
  • Given three dictionaries, associated with the variables, canadian_capitals, mexican_capitals, and us_capitals, that map province
    11·1 answer
  • 8. Which of the following must a designer be aware of when planning the design of a document?
    10·1 answer
  • The addElement operation for the linked implementation must determine the parent of the next node to be inserted. Why?
    5·1 answer
  • Does players report you on Mobile legends bang bang for playing your own Music while your playing yes or no
    11·1 answer
  • Describe each of the six steps of the selection process as illustrated in chapter 12
    13·1 answer
  • Which statement describes earthquakes?
    6·1 answer
  • What are the three fundamental principals of mnemonics??
    6·2 answers
  • Pat practices on the keyboard to improve his typing speed. When he typed the sentence It was a rainy day, he missed typing the l
    6·1 answer
  • Which guideline would not promote energy conservation?
    15·1 answer
  • What's wrong with this python code i don't know what's wrong with both of them
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!