CSCI-UA.002 -- Python -- Summer, 2017
Nathan Hull
ASSIGNMENT 7

Due: Tuesday, August 1st


Write a program that allows a user to type an interactive series of commands which would control the turtle. Here are the possible commands:

Note that each one of these commands should call its own Function (Def). In the case of te F, L, and R commands, those functions should be sent a parameter indicating the distance or the number of degrees.

Here is a possible session which your user might have:
DIST
100
F
L
F
L
F
L
F
L
RED
DEG
120
F
L
F
L
F
L
Q

This would draw a red triangle inside of a black box.


EXTRA CREDIT (3 points)

Prompt the user at the beginning of the program on whether he/she wants to have input from the keyboard, or from a disk file. If the disk file option is chosen, further prompt the user for the name of the file which contains the "interactive" turtle commands.

PART TWO:

Notes about your program: