Question

where the treasure is hidden! Your code should: • Use a for loop that repeats 4 times Draw an X with a total diagonal distancneed help creating x python basic computer sceince

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find the answer below.
Please do comments in case of any issue. Also, don't forget to rate the question. Thank You.

code.py

TO P drawx x 1 import turtle 2 myTurtle = turtle. Turtle(shape=turtle) 3 myTurtle.speed(5); 4 5 myTurtle.left(45) 6 for i i

code.py

import turtle
myTurtle = turtle.Turtle(shape="turtle")
myTurtle.speed(5);

myTurtle.left(45)
for i in range(4):
myTurtle.goto(0,0)
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.goto(0,0)

window = turtle.Screen()
window.exitonclick()

1593580307607_image.png

Add a comment
Know the answer?
Add Answer to:
need help creating x python basic computer sceince where the treasure is hidden! Your code should:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I need help writing a very basic code in python. The code should not be very...

    I need help writing a very basic code in python. The code should not be very complicated. The code must have the following things in it: 1. create a function that takes a state and length of characters and makes a license plate and use the function to make a plate based on user input (use the def function and random.choice as well as import random) 2. the license plate should be a mix of random letters and numbers based...

  • I need help wring a python code for my IOT class. This code will be used...

    I need help wring a python code for my IOT class. This code will be used on Tinkercad I am to create a Blinking LED and Ultrasonic Senor For this project you will be creating a distance sensor circuit with visual feedback. You will use a Ultrasonic sensor to measure the proximity. An LED will be used to indicate the proximity on an object by blinking fast to close objects, and slow for far away objects. You can use your...

  • please help, language is python You’re creating a secret code to share with your friends such...

    please help, language is python You’re creating a secret code to share with your friends such that every word should be written with the second and last letters swapped. Write a function called encode that receives a string (input) and prints out another string with the second and last letters swapped. Example function calls: encode(secret) # should print “the code for secret is stcree” encode(city) # should print “the code for city is cyti”

  • his assignment will help the student by: Create shapes using Java code Using and creating colors...

    his assignment will help the student by: Create shapes using Java code Using and creating colors with Java Coding JFrames and using the Graphics g method Using Loops (to draw) Your program will generate a drawing using java. You should draw an object that makes sense, not just spare shapes and colors. You must use at least 3 different shapes You must use at least 2 different fonts You must use at least 2 predefined java colors and one custom-made...

  • I need some help in creating a pair of programs in Python UDPClient and UDPServer, that...

    I need some help in creating a pair of programs in Python UDPClient and UDPServer, that use the UDP protocol to communicate with each other. Once the sockets are set up, the communication will go as follows: The client reads a line of characters (data) from its keyboard and sends the data to the server. The server receives the data and converts the characters to uppercase. The server sends the modified data to the client. The client receives the modified...

  • I need help with this c++ code. This is my first computer science course. I have...

    I need help with this c++ code. This is my first computer science course. I have not learned arrays but I am learning vectors. I am also required to write this code without do loops or any other form of advanced coding technique. Please help me figure out this code using the basic coding techniques that you would find in an introduction to cs. Thank you for your help, I don't even know where to start :)

  • i need help with this python assignment asking for creating a simple database (client application )...

    i need help with this python assignment asking for creating a simple database (client application ) そ归乔 Assignment rh ENCS-393-2174-WW: Tset5.pdf A2.pdf textbook.pdf Department of ComputV ← → O仚 file:///C 18/comp%20348/A2.pdf 5. Print Report: This will print the contents of the database, sorted by name. Note that the sorted contents should be sent by the server back to the client and then displayed by the client app. The Print Report function is r because it is the primary way for...

  • Python code help: Minimum & Absolute values Complete the statement so that absolute_min refers to the...

    Python code help: Minimum & Absolute values Complete the statement so that absolute_min refers to the minimum of the absolute values of the values referred to by a, b, and c. That is, if arefers to -5, b refers to 2, and c refers to -1, then absolute_min should refer to 1. Use the built-in functions min and abs in your answer. My code was wrong, please help to correct Minimum of absolutes Complete the statement so that absolute_min refers...

  • I need help in creating a testcode for this pseudocode in Java. For following questions, please...

    I need help in creating a testcode for this pseudocode in Java. For following questions, please provided your solutions for each of the questions ina separate Word document. 1. Write pseudocode for the following problem: (10 points) You are in charge of the school's IT department and several classes are asking to by iPads for use in their classes. Based on the number ofiPads each class requested, determine the total costs for each classroom. The only information given is that...

  • python code for guessing game users enter the number the computer will guess 8:38 PM 100...

    python code for guessing game users enter the number the computer will guess 8:38 PM 100 nstructure.com 1. Number guessing game : (5 points) 1) Requirements: Your program will ask the user to enter a number between 1 and 1000. Then it will try to guess the correct number with the guaranteed minimal average number of guesses. Which search algorithm should you use? 2) Expected Output: Enter a number between 1 and 1000? 784 Computer guesses: 500 Type 'l' if...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT