def reverse_words(s): return " ".join(reversed(s.split()))
def capitalize(s): return s.title()
def is_pal(s):
    s="".join(c.lower() for c in s if c.isalnum())
    return s==s[::-1]
assert reverse_words("hello world")=="world hello"
assert capitalize("hello world")=="Hello World"
assert is_pal("A man a plan a canal Panama") and not is_pal("hello")
print("SELF-TEST PASS")