Skip to content

Commit 5cd23f4

Browse files
committed
Renamed turtles
1 parent 75ec7ea commit 5cd23f4

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/m3_turtles.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,24 @@
5555
# ----------------------------------------------------------------------
5656
# Makes (constructs) a SimpleTurtle object.
5757
# ----------------------------------------------------------------------
58-
nadia = rg.SimpleTurtle()
58+
dave = rg.SimpleTurtle()
5959

6060
# ----------------------------------------------------------------------
6161
# Ask the SimpleTurtle objects to do things:
6262
# ----------------------------------------------------------------------
63-
nadia.forward(100)
64-
nadia.left(90)
65-
nadia.forward(200)
63+
dave.forward(100)
64+
dave.left(90)
65+
dave.forward(200)
6666

6767
# ----------------------------------------------------------------------
6868
# Construct a new turtle and ask it to do things.
6969
# ----------------------------------------------------------------------
70-
akil = rg.SimpleTurtle('turtle')
71-
akil.pen = rg.Pen('red', 30)
72-
akil.speed = 10 # Faster
73-
akil.backward(50)
74-
akil.left(90)
75-
akil.forward(50)
70+
matt = rg.SimpleTurtle('turtle')
71+
matt.pen = rg.Pen('red', 30)
72+
matt.speed = 10 # Faster
73+
matt.backward(50)
74+
matt.left(90)
75+
matt.forward(50)
7676

7777

7878
########################################################################
@@ -93,7 +93,7 @@
9393
#
9494
# TODO: 4.
9595
# The code above CONSTRUCTS two SimpleTurtle objects and gives those objects NAMES:
96-
# nadia akil
96+
# dave matt
9797
#
9898
# Below this TO DO comment construct another SimpleTurtle object,
9999
# naming it whatever you want.

0 commit comments

Comments
 (0)