Skip to content
← Back to Community
how to change turtle size
Profile icon
[deleted]

hi in the turtle documentation, they say that for change a turtle size you use the metode shapesize or turtlesize, but when i try it says
AttributeError: 'Turtle' object has no attribute 'shapesize' on line 33
(i'm using turtle repl)

Voters
Profile icon
MedhaNarayan2
Profile icon
catcat2157
Profile icon
SlobodanGolubov
Comments
hotnewtop
Profile icon
SlobodanGolubov

Slobodan

Profile icon
CodeLongAndPros

Are you looking at the 3.? docs or the 2.7 docs?

Profile icon
[deleted]
Profile icon
[deleted]

i work in python [email protected]

Profile icon
CodeLongAndPros

@MehdiBenkhadra
Huh. It works for me:

turtle

Profile icon
[deleted]

what? really don't move i'm going to try it


@CodeLongAndPros

Profile icon
CodeLongAndPros

@MehdiBenkhadra
I've also tested it on my local machine.

Profile icon
[deleted]

i thing it don't work just in a turtle repl
but in a normal one it [email protected]

Profile icon
CodeLongAndPros

@MehdiBenkhadra
Well, a Turtle repl is Python 2.7.

Profile icon
[deleted]

whaaaaaaaaaaaaaaat
[email protected]

Profile icon
CodeLongAndPros

@MehdiBenkhadra
Yep, print "Hello" works.

Profile icon
SixBeeps

Can you copy-paste your code? I think I might know what it is.

Profile icon
[deleted]

import turtle

t= turtle.Turtle()
t.setheading(90)
wn= turtle.Screen()

def up():
t.forward(100)
while True:
wn.listen()
wn.onkey(up, 'Up')

thay's an example it works in a turtle repl but not in a normal python one

@SixBeeps