Lowercase, Uppercase or Mixed?

Published by Joshua Señoron in

Create a function which returns "upper" if all the letters in a word are uppercase, "lower" if lowercase and "mixed" for any mix of the two.

Examples

get_case("whisper...") ➞ "lower"

get_case("SHOUT!") ➞ "upper"

get_case("Indoor Voice") ➞ "mixed"

Notes

Ignore punctuation, spaces and numbers.

Watch a quick demo on how Edabit works.