Skip to content

Commit

Permalink
chore(curriculum): acknowledge exceptions in Luhn algorithm (#54753)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilenia-magoni committed May 14, 2024
1 parent ab4d41c commit de81912
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit de81912

Please sign in to comment.