Queer European MD passionate about IT

twttr.py 309 B

12345678910111213141516
  1. def main():
  2. tweet = input("Input: \t\t")
  3. result = shorten(tweet)
  4. print(f"Output: {result}")
  5. def shorten(word: str) -> str:
  6. result = ''
  7. for c in word:
  8. if c.lower() not in ('a', 'e', 'i', 'o', 'u'):
  9. result += c
  10. return result
  11. if __name__ == "__main__":
  12. main()