[reported #101, #102] Python -- French -- SCT

Q&A: http://discuss.codecademy.com/c/additional-courses/python-intermediate-fr-FR-py0yl

Lesson: https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-py0yl/0/4

Votre fonction a échoué sur 434 comme entrée car votre fonction indique "'int' object is not callable" error.

A learner has been going through the French Python track and ran into a couple of ones where the SCT’s needed to be crashed or helped in order to pass the exercise.

I recognized one of the error messages that they were getting as something I had written, coming back at me in French. Hilarious. What’s the translation process?

These are the broken exercises:

https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-py0yl/0/4
https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-je5q0/1/4
https://www.codecademy.com/fr/courses/python-intermediate-fr-FR-i3pwf/1/1 (Broken in both French and English)

1 Like

Hello I noticed some bugs in Python’s course in french. I’ve tested the same code with english version, it’s perfectly working :

  • 15/4 digital sum :
    “‘int’ object is not callable” error.
    Code :
def somme_chiffre(n):
    string = str(n)
    total = 0
    for char in string:
        total += int(char)
    return total
  • 15/5 factorial :
    “global name ‘reponse’ is not defined” error
    Code :
def factorielle(x):
    if x == 0:
        return 1
    else:
        return x * factorielle(x - 1)

15/6 is_prime :
“‘bool’ object is not callable” error.
Code :

def est_premier(x):
    if x <= 1:
        return False
    for n in range(2, x):
        if x % n == 0:
            return False
    return True

EDIT : it seems all exercices from 15.4 to 15.15 have the same bug in french.

And many thanks for your amazing website ! :smile:

Jean-Remi

I have encountered the same problems. It seems to be a problem only on french version.
Could you please fix it, we can not validate theses exercices otherwise.

I agree with Jean-Remi, this is really a great website.

Regards,
Gwenael

Recording some notes in case this gets looked at.

It looks like:

  • SCT: correct = response(test) should be correct = answer(test)

4/15 somme_chiffre : https://www.codecademy.com/courses/python-intermediate-fr-FR-py0yl/0/4

5/15 Factorielles : https://www.codecademy.com/en/courses/python-intermediate-fr-FR-py0yl/0/5#

6/15 est_premier : https://www.codecademy.com/en/courses/python-intermediate-fr-FR-py0yl/0/6#

English, for comparison:
4/15 : https://www.codecademy.com/en/courses/python-intermediate-en-rCQKw/0/4

@ionatan, I’ve just pulled these together. I think that you might find that some of them could be added to your issue report.

Yeah okay. I added a comment about those two as well.

Hi guys! Are there any updates about this issue?

Hi Constantine, I just checked and there has been no news.

You can use this bookmarklet to view the SCT code.