shelf label barcodes (EAN-8): implement stub
shelf label barcodes (EAN-8): implement stub: a task in smol-software-harbor (Harbor dataset). check digit() in ean8.py is a stub, so no labels can be printed. Implement the EAN-8 rule from its docstring (weights 3, 1, 3, 1, ... from the left over the first seven digits; the check digit brings the…
The task
`check_digit()` in `ean8.py` is a stub, so no labels can be printed. Implement the EAN-8 rule from its docstring (weights 3, 1, 3, 1, ... from the left over the first seven digits; the check digit brings the sum up to a multiple of 10). Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.