Hello, @bit2736304594, and welcome to the forums.
I ran your code. It returns
It also returns
mystery3 as valid, but it is an invalid number.
Your code always starts at the beginning of the card number array, and doubles every other digit. The problem occurs when a card number has an odd number of digits.
Thank you!!! I saw were I went wrong.