Acronym

From Exercism PythonMITOriginal pagePython1 class period1 exercise9 graded tests

README.md

Acronym

Instructions

Convert a phrase to its acronym.

Techies love their TLA (Three Letter Acronyms)!

Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG).

Punctuation is handled as follows: hyphens are word separators (like whitespace); all other punctuation can be removed from the input.

For example:

InputOutput
As Soon As PossibleASAP
Liquid-crystal displayLCD
Thank George It's Friday!TGIF

Open the 01 folder and edit main.py. Run Tests checks it.

For teachers

Acronym

Students solve Exercism's “Acronym” Python exercise in CS Room, with Exercism's own tests.

  • Time: 1 class period
  • Tests: 9, set up for you when you import the lesson
  • Practices: regular-expressions