mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +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 |