Skip to content

Commit a2f084e

Browse files
committed
fixed an error
1 parent cb1b50b commit a2f084e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/kaceyb/python/lab07/lab_07.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def credit_card_validator(credit_card_number):
6464
print(sum_values)
6565

6666
# Take the second digit of that sum.
67-
second_digit = sum_values[1]
67+
second_digit = int(sum_values[1])
6868
print(second_digit)
6969
# If that matches the check digit, the whole card number is valid.
7070
answer = second_digit == check_digit

0 commit comments

Comments
 (0)