From de819125276410afab436634cdb39ca567cb3cdf Mon Sep 17 00:00:00 2001 From: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> Date: Tue, 14 May 2024 14:33:45 +0200 Subject: [PATCH] chore(curriculum): acknowledge exceptions in Luhn algorithm (#54753) --- .../65687b182c2a8fb1470e0b97.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curriculum/challenges/english/07-scientific-computing-with-python/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm/65687b182c2a8fb1470e0b97.md b/curriculum/challenges/english/07-scientific-computing-with-python/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm/65687b182c2a8fb1470e0b97.md index ef20502aa19..af01c7f2684 100644 --- a/curriculum/challenges/english/07-scientific-computing-with-python/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm/65687b182c2a8fb1470e0b97.md +++ b/curriculum/challenges/english/07-scientific-computing-with-python/learn-how-to-work-with-numbers-and-strings-by-implementing-the-luhn-algorithm/65687b182c2a8fb1470e0b97.md @@ -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.