Computer Science, asked by PranitaKumari, 5 months ago

What is wrong with the following code:

class Ball():
def __init__(self):
self.x = 0
self.y = 0
self.change_x = 0
self.change_y = 0

x += change_x
y += change_y

a)The variables should be set equal to ""

b)The code to set the variables to zero should be inside a method.

c)self should be in between the parenthesis.

d)The code to add to x and y must be in a method.​

Answers

Answered by aryantiwary765
1

Answer:

option (a) the variable should be set equal to ""

hope you like it

Answered by bhattnagarparnika10
1

Answer:

option A.............

Similar questions