Skip to content

Commit

Permalink
add: Luhn algorithm
Browse files Browse the repository at this point in the history
Luhn algorithm is mostly used for validation.
  • Loading branch information
NitkarshChourasia committed Jan 16, 2024
1 parent 2709e62 commit 5d0d76d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions luhn_algorithm_for_credit_card_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"""

# TODO: To make it much more better and succint


def verify_card_number(card_number):
sum_of_odd_digits = 0
Expand Down

0 comments on commit 5d0d76d

Please sign in to comment.