diff --git a/a11y.py b/a11y.py new file mode 100644 index 0000000..76c1215 --- /dev/null +++ b/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('')