Python Forum

Full Version: TurtleWorld module not found
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello-I installed Swampy 2.1.5 on Python 2.7.15 correctly. However, when I try to run the code below, I keep getting an error message "ImportError: No module named TurtleWorld". Can someone please help me? Thank you.

from TurtleWorld import *

world = TurtleWorld()
bob = Turtle()

def square(t):
    for i in range(4):
        fd(t, 100)
        lt(t)

square(bob)
wait_for_user()
Try from swampy.TurtleWorld import *

Lewis