I’ve been using Python for a few months and tried to make a game. I’ve registered today and uploaded my project, but the console keep showing the error :
" ‘function’ object has no attribute ‘clear’ " for objects (in this case, score and life)
Is there any way I can fix it?
Thanks for your attention !
@Ado07 Could you include the link to your Repl?
This is probably it:
@Ado07 we are not allowed to help with school assignments, but we can point you in the right direction.
sure. There it is (part si in french tho) :
Well, it’s not really a school assignment now that I’ve already finished it, but thanks still !
( I mean, I just want to improve it as the thing is done)
lol Didn’t read the title for even a moment before posting this, but as QwertyQwerty54 said, we can’t help you with school assignments, but can help you if there is a small error you’ve made in your code.
I did look at your code and it seems on lines 459 to 464 you used the variable “montrer_vies” as your turtle, then went and made a function called the same thing on line 467. If you change the function’s name to something like “montrer_vies_” and then on line 507 use the new function name instead, you should be good to go.
If that was too confusing go to my fork.
Oh yes thanks I didn’t see it
Well I think it’s because I uploaded a wrong version of my stuff anyway so error by my side.
Thanks for helping me !