Back to Browse

Credit card validator in Python πŸ’³

87.8K views
Oct 27, 2022
8:53

#Python #tutorial #project # Python credit card validator program # 1. Remove any '-' or ' ' # 2. Add all digits in the odd places from right to left # 3. Double every second digit from right to left. # (If result is a two-digit number, # add the two-digit number together to get a single digit.) # 4. Sum the totals of steps 2 & 3 # 5. If sum is divisible by 10, the credit card # is valid 00:00:00 intro 00:00:59 Step #1 00:03:51 Step #2 00:05:16 Step #3 00:07:17 Step #4 00:07:36 Step #5 00:08:07 testing #'s 00:08:40 conclusion Test Credit Card Account Numbers American Express 378282246310005 American Express 371449635398431 American Express Corporate 378734493671000 Australian Bankcard 5610591081018250 Diners Club 30569309025904 Diners Club 38520000023237 Discover 6011111111111117 Discover 6011000990139424 JCB 3530111333300000 JCB 3566002020360505 MasterCard 5555555555554444 MasterCard 5105105105105100 Visa 4111111111111111 Visa 4012888888881881

Download

1 formats

Video Formats

360pmp411.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Credit card validator in Python πŸ’³ | NatokHD