Python Code to Draw a Square
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)
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
