Practice makes perfect - 4 potential bug


#1

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:
https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-py0yl/0/4?curriculum_id=5370f030fed2a866a2000001

def somme_chiffre(n):
n = str(n)
somme = 0
for i in n:
somme+=int(i)
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


#2

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