Python Code to Draw a Square
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Evaluation: 10 points total –> 3 points for pseudocode; 3 points if your code works when it’s run; 1 point if you did something fun to your square; 1 point for attaching a screenshot; 2 points for responding to 1 other student ● Write out the steps in English (we call it pseudocode!) and then write the code that draws a square that has a side length of 120. ● I expect you to test your code to make sure it works in interactive mode (the Python shell). If it doesn’t work, you will not receive full credit for the coding portion. Do something fun with your square – set it at an angle, change the color of it, etc. ● Include a screenshot of the square you draw in the post! ● Once you’ve posted, respond to another person in your section. Comment on their approach, including one thing you liked about it and whether you would do anything differently. Example – drawing a triangle: Pseudocode (map out the steps): 1. Import turtle module 2. Create turtle (note: name your turtle whatever you want!) 3. Set pen color to teal. 4. Draw base of triangle 5. Turn left (120 degrees) 6. Draw rightmost side of triangle 7. Turn left (120 degrees) 8. Draw leftmost side of triangle Code: import turtle tallulah = turtle.Turtle() tallulah.pencolor(“teal”) tallulah.pensize(10) tallulah.forward(120) tallulah.left(120) tallulah.forward(120) tallulah.left(120) tallulah.forward(120)
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds