We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb1b50b commit a2f084eCopy full SHA for a2f084e
code/kaceyb/python/lab07/lab_07.py
@@ -64,7 +64,7 @@ def credit_card_validator(credit_card_number):
64
print(sum_values)
65
66
# Take the second digit of that sum.
67
- second_digit = sum_values[1]
+ second_digit = int(sum_values[1])
68
print(second_digit)
69
# If that matches the check digit, the whole card number is valid.
70
answer = second_digit == check_digit
0 commit comments