0

I've been trying to finish up an otherwise straightforward assignment for my python comp sci class but for whatever reason everytime I try importing cTurtle it informs me that such a module does not exist. I'm a little confused because I've never had this problem before. The relevent bit of code is here

def plotEarthquakeData(day1,day2):
import cTurtle 
myTurtle=cTurtle.Turtle()
myTurtle.bgpic('worldmap.gif')
myTurtle.setWorldCoordinates(-180,-90,180,90)
data=parseEarthquakeData(day1,day2)
for lines in data:
    #myturtle.up()
    color=colorCode(lines[-1])
    size=float(lines[-1])*4
    myTurtle.goto(float(lines[0]),float(lines[1]))
    #myTurtle.down()
    myTurtle.dot(size,color)

The rest of the code isn't really relevent (if you're wondering where the other functions came from)
I'd appreciate if someone who may have had this problem could share any words of wisdom with me?

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by pyTony
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.