Homework 1: Run a Python program

Here is a small Python 3 program

# Copyright © 2014 Bart Massey
d = 30
d2 = int(d / 2)
d3 = int(d / 3)
for i in range(d):
    for j in range(d):
        r = (i - d2)**2 + (j - d2)**2
        if abs(r - (d2 - 2)**2) < d2  or \
           (i > 2 * d3 and abs(r - (d2 - 6)**2) < d2) or \
           (i == d3 and (j == d3 or j == 2 * d3)):
            print("X", end="")
        else:
            print(" ", end="")
    print()

Your assignment is to get the program into your Python environment, run it, and submit the output as a text file called "output.txt". Please also include a text file called "writeup.txt" containing a writeup that contains a brief note about what you did, what problems you had, and what you learned.