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 23, 2020 in Python by Praise
• 120 points

edited May 25, 2020 by Gitika 782 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 2, 2019 in Python by anonymous
• 120 points
795 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,422 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,042 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP