Python Forum
I can't turtle, don't know why
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I can't turtle, don't know why
#1
Total scrub here. Need help debugging this basic turtle program. It doesn't generate an image when I run it in Spyder.
Program in Question: 

import turtle 
wn = turtle.Screen()
jose = turtle.Turtle
jose.shape('turtle')
for size in range(10):
    jose.forward(69)
    jose.left(45)
    jose.stamp
    jose.forward(-69)
    jose.right(45)
wn.exitonclick()

Thanks guys.
Reply
#2
What if you run it with a raw terminal instead of Spyder?
Reply
#3
you need:
jose = turtle.Turtle()
not
jose = turtle.Turtle
Reply
#4
(Mar-04-2017, 03:16 AM)Larz60+ Wrote: you need:
jose = turtle.Turtle()
not
jose = turtle.Turtle



Sweet Buddah, thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 6,171 Feb-06-2019, 01:25 AM
Last Post: woooee
  Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. BertyBee 3 5,618 Jan-04-2019, 02:44 AM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020