Skip to content

AnonymousRunAway/luhns-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Luhn Algorithm Implementation

This Python script implements the Luhn algorithm for calculating or verifying checksums.

Functions:

luhn(query, verify=False):

Calculates or verifies the Luhn checksum for a given number. Returns True for valid checksum, False otherwise.

Sample Usage

checksum = luhn(query)
checksum_ verified = luhn(query, verify=True)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages