summaryrefslogtreecommitdiffstats
path: root/skripti/davčna.py
blob: 89fe9f2040d40961cecf945975960053f55e5b57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python3
from sys import argv
s = 0
m = [x for x in range(2,9)]
for z in argv[1]:
	x = m.pop()
	s += x * int(z)
k = 11-s%11;
if k > 9:
	k = 0
print(f"{argv[1]}{k}")