Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for Ascending List by Pouf
from typing import Iterable
def is_ascending(items: Iterable[int]) -> bool:
items_are_unique = len(items) == len(set(items))
is_ordered = sorted(items) == items
return items_are_unique and is_ordered
June 28, 2020