I am trying to build a pong game this is what they showed me.

0 votes
import turtle


wn = turtle.Screen()


wn.bgcolor("blue")

wn.tracer(0)


#Paddle A

paddle_a = turtle.Turtle()

paddle_a.speed(0)

paddle_a.shape("square")

paddle_a.color("red")

paddle_a.ShapeSize

paddle_a.penup()

paddle_a.goto(-350, 0)


#Paddle B


#Ball


#Main Game Loop


while True:

wn.update()
AttributeError: 'Turtle' object has no attribute 'ShapeSize' on line 13

May 22 in Python by Praise
• 120 points

edited May 25 by Gitika 52 views

Hi, @Praise,

This is because you are capitalizing on the first letter of the word Shape and it should be shape.

So you can resolve this error by replacing :

paddle_a.ShapeSize

to

paddle_a.shapesize

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
0 votes
0 answers

I am trying to click the button but it is not working and it is drop list ..

<a class="quickreports btn btn3d tbbtn" href="javascript:" style="position:static" ...READ MORE

Dec 1, 2019 in Python by anonymous
• 120 points
128 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 963 views
0 votes
0 answers
+4 votes
6 answers