Browse Source

a11y s3k

master
Julio Biason 3 years ago
parent
commit
61250122fa
  1. 11
      a11y.py

11
a11y.py

@ -0,0 +1,11 @@
import sys
phrase = sys.argv[1]
for word in phrase.split():
print('{initial}{size}{final} '.format(
initial=word[0],
final=word[-1],
size=max(len(word)-2, 0)
), end='')
print('')
Loading…
Cancel
Save