From 61250122fa9dc2398b9612ff26d7c2cb8a76be30 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 25 Aug 2021 09:54:24 -0300 Subject: [PATCH] a11y s3k --- a11y.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 a11y.py 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('')