TurtleWorld provides a set of functions for drawing lines by steering turtles around the screen. You can download Swampy from allendowney.com/swampy.
Unzip it into the site-packages folder. All third-party packages can be installed there.
Next step is system environment variables configuration.
Then open the IDLE (Python GUI) to test if the module installed successfully.
Type form TurtleWorld import * and click enter, if no error occurs means the module TurtleWorld is installed successfully. Then you can continue to study this interface.
Testing code:
Output: