def hello(text: str, caps: bool) -> str:
    """ Returns text in all caps if caps = True, else returns text capitalised."""
    if caps:
        return text.upper()
    else:
        return text.capitalize()