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.
string = str(n)
total = 0
for char in string:
total += int(char)
- 15/5 factorial :
"global name 'reponse' is not defined" error
if x == 0:
return x * factorielle(x - 1)
15/6 is_prime :
"'bool' object is not callable" error.
if x <= 1:
for n in range(2, x):
if x % n == 0:
EDIT : it seems all exercices from 15.4 to 15.15 have the same bug in french.
And many thanks for your amazing website !