diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-09-01 14:42:26 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-09-01 14:42:26 +0200 |
commit | c660fbed91429a1735d41644f5502284c2daaac2 (patch) | |
tree | 28647b79ba32949cbaa35e8902f37ad3fcc9a200 /skripti | |
parent | Merge branch 'master' of ssh://ni/var/lib/git/sijanec/r (diff) | |
download | r-c660fbed91429a1735d41644f5502284c2daaac2.tar r-c660fbed91429a1735d41644f5502284c2daaac2.tar.gz r-c660fbed91429a1735d41644f5502284c2daaac2.tar.bz2 r-c660fbed91429a1735d41644f5502284c2daaac2.tar.lz r-c660fbed91429a1735d41644f5502284c2daaac2.tar.xz r-c660fbed91429a1735d41644f5502284c2daaac2.tar.zst r-c660fbed91429a1735d41644f5502284c2daaac2.zip |
Diffstat (limited to 'skripti')
-rwxr-xr-x | skripti/p.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/skripti/p.py b/skripti/p.py deleted file mode 100755 index 82263bc..0000000 --- a/skripti/p.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/python3 -from sys import argv -s = 0 -m = [x for x in range(3,14)] -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}") |