chore(curriculum): acknowledge exceptions in Luhn algorithm (#54753)

This commit is contained in:
Ilenia 2024-05-14 14:33:45 +02:00 committed by GitHub
parent ab4d41caac
commit de81912527
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,8 @@ dashedName: step-20
Within the `for` loop, use the `+=` operator to add the `digit` to the `sum_of_odd_digits` variable.
Doing this your script throws a `TypeError` because you are trying to add a string to an integer, but don't worry, you will learn more about how to make it work in the next step.
# --hints--
You should have `sum_of_odd_digits += digit` within the `for` loop.