Practice makes perfect - 4 potential bug

Hi everyone,

First, my problem happens on the French version of the Python track “C’est en forgeant qu’on devient forgeron”, on the 4th exercice (Digit Sum) that can be found at this adress:

def somme_chiffre(n):
n = str(n)
somme = 0
for i in n:
return somme

I’m submitting this code, but I got an error message regarding the call of an “int” object.
I’m using a chromebook and the latest version of Chrome. Here is a snapshot of the page with it’s error message.

I’ve also tried other working solutions proposed by English members for who it worked properly, and all returned the same error message to me.

Hope it is a legitimate problem and not me making some stupid mistake.
Thanks for your help !

edit: Forgot to mention that’s from the Python course

your code is fine, it is a know bug, you can use this code:

def somme_chiffre(n):
     return somme_chiffre

to pass the exercise