from typing import Any
from typing import Iterable


def is_atom(entity: Any) -> bool:
    """Uses Lisp's notion of an atom. Strings are considered atoms, not iterables."""
    if isinstance(entity, str):
        return True
    else:
        return not isinstance(entity, Iterable)