Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python 3 Turtle GTX: Define a Turtle called TurtleGTX, that comes with some extr

ID: 3836481 • Letter: P

Question

Python 3 Turtle GTX:

Define a Turtle called TurtleGTX, that comes with some extra features: it can jump forward a given distance, and it has an odometer that keeps track of how far the turtle has travelled since it came off the production line. (The parent class has a number of synonyms like fd, forward, back, backward, and bk: for this exercise, just focus on putting this functionality into the forward method.) Think carefully about how to count the distance if the turtle is asked to move forward by a negative amount.

Explanation / Answer

Answer

Below is the required python code: