mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
chore(curriculum): acknowledge exceptions in Luhn algorithm (#54753)
This commit is contained in:
parent
ab4d41caac
commit
de81912527
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user