Modify Words

Published by werdna in

Create a function that takes a list of any length. Modify each element (capitalize, reverse, hyphenate).

Examples

edit_words(["new york city"]) ➞ ["YTIC KR-OY WEN"]

edit_words(["null", "undefined"]) ➞ ["LL-UN", "DENIF-EDNU"]

edit_words(["hello", "", "world"]) ➞ ["OLL-EH", "-", "DLR-OW"]

edit_words([""]) ➞ ["-"]

Notes

Input list values can be any type.

Watch a quick demo on how Edabit works.