Can somebody explain me?
I think I’ve done exactly what the site tell to me, in a similar thread (Learn How to Work with Numbers and Strings by Implementing the Luhn Algorithm - Step 19) what I’ve done is intended as a solution, but it report error.
def verify_card_number(card_number):
sum_of_odd_digits = 0
card_number_reversed = card_number[::-1]
odd_digits = card_number_reversed[::2]
for digit in odd_digits:
print(odd_digits)
Thank you in advance.