Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Compute the Damm check digit for the given number and check its correctness.

The number can be in any format that is convertible to a string. All
characters that are not digits are ignored.

        def check(number):
    """Compute the Damm check digit for the given number and check its correctness.
    
    The number can be in any format that is convertible to a string. All
    characters that are not digits are ignored.
    """
    return encode(number) == 0
        


src/d/a/damm-1.0/damm/__init__.py   damm(Download)
__versioninfo__ = (1, 0, 0)
 
from .damm import encode, check
from .damm16 import encode as encode16, check as check16