Ask coding questions

← Back to all posts
I need help making gravtiy
LedipLedip (1)

So in my class box I have a function called fall which is supposed to make the box fall but it says I gave it 2 positional arguments even though it only takes one. I have no idea where the other argument is so can you help me?

Comments
hotnewtop
robowolf (436)

Nothing is wrong for me. Try refreshing.

robowolf (436)

The fall method takes self, which is a predefined argument I believe. 'self' is one of those python names like True where you can't name a variable or parameter after it. Try changing it to something else.

LedipLedip (1)

I did that and it said 0 positional arguments are taken but 1 was given