7.1.1 Ghost Codehs

is often the very first exercise in this unit. It is designed to force the student to stop writing code for the process and start writing code for the blueprint .

from graphics import Canvas # Common in CodeHS Python graphics 7.1.1 ghost codehs

def fade(self): if self.color == "red": self.color = "lightcoral" elif self.color == "lightcoral": self.color = "white" self.canvas.itemconfig(self.shape, fill=self.color) is often the very first exercise in this unit

function drawGhost(x, y) ghost = new Group(); fill=self.color) function drawGhost(x