do cg will clear all graphics drawn.
It will clear all graphics drawn with pens and dots, but
it will not clear text written with
write, and it
will not clear turtles made by
new Turtle. See
cs to clear text or
clear the whole screen.
cg by itself will not do anything, because
our language only runs commands with at least two words:
you need to use