I hereby claim:
- I am stfnndrsn on github.
- I am stfnandersen (https://keybase.io/stfnandersen) on keybase.
- I have a public key whose fingerprint is C405 6244 E122 8CB1 922C CA85 60F1 E1AE D834 0387
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Verifying that +stfnandersen is my blockchain ID. https://onename.com/stfnandersen |
def _calculate_ocr_checksum(ocr_code): | |
""" | |
Inspired from https://danskebank.dk/PDF/Blanketter/ERHVERV/Indbetalingskort/Fremstilling_af_71-kort.pdf | |
:param ocr_code: string | |
:return: int | |
""" | |
counter = 0 | |
should_multiply = (len(ocr_code) % 2) == 1 | |
for c in ocr_code: |