Question: Using Python: We are creating a Pegity board that is 15 x 15. Remember that square sizes are always 1 screen unit, based on our

Using Python:

We are creating a Pegity board that is 15 x 15. Remember that square sizes are always 1 screen unit, based on our resetting of the work coordinate system. It is possible to move fractional screen units (e.g. t.forward(.5)). Using the attached code as a starting point, write additional code to label the columns with numeric headers from left to right (e.g. 0,1,2,3,4,..., etc.). DO NOT hardcode these headers, but instead use a loop to iterate through the headers (0 through 14) and the locations (you may obviously use some additional variables that you increment for this purpose, although if you think through it carefully, you should be able to use the same loop index both to create the digit label and to move to the right X location on the screen before writing each header. Do check out the turtle .write method for additional information on how to use a larger font than the default). Write another loop that is responsible for labeling the rows from A through O from the first row to the last row on the screen. Again, this should be done with a single loop and no hardcoding of the labels or locations. See picture below for clarification. Syntax for write, where t is a turtle, looks like: t.write("My message", font=('Arial',16,'bold'))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!