# puzzle gauntlet medium

Unpack the Chant

Now run the machine backwards: 'a3b2' becomes 'aaabb'. Compression is only useful if you can UNcompress! ๐Ÿ“ค

You get a packed chant โ€” letter, count, letter, countโ€ฆ (counts are single digits 1โ€“9). Print the original chant.

Example:

Input: packed = "a3b2" Output: aaabb

Reading letter-digit pairs, "a" repeated 3 times gives "aaa" and "b" repeated 2 times gives "bb", joined into "aaabb".

๐Ÿ’ก need a hint?

pg-unpack-chant.py๐Ÿ”’ given lines are locked โ€” write your code in between
loading...