File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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########################################################################
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.
You can’t perform that action at this time.
0 commit comments