mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 09:10:16 +00:00
95a4957d9e
* Luhn algorithm Perform Luhn validation on input string Algorithm: * Double every other digit starting from 2nd last digit. * Subtract 9 if number is greater than 9. * Sum the numbers https://en.wikipedia.org/wiki/Luhn_algorithm * Update DIRECTORY.md * Update luhn.py * Update luhn.py * Update luhn.py * Update luhn.py * Update DIRECTORY.md |
||
---|---|---|
.. | ||
__init__.py | ||
adler32.py | ||
chaos_machine.py | ||
djb2.py | ||
enigma_machine.py | ||
hamming_code.py | ||
luhn.py | ||
md5.py | ||
sdbm.py | ||
sha1.py |