Check if list is sorted in non-decreasing order.
Implement this function:
def is_sorted(lst: list) -> bool:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: lst.
Input
[1, 2, 3, 4]
Output
True