Really need some help here. Super early in learning Python.
The goal is to take a number and see if the digits are in ascending order. What I have so far is:
If you're working with such a small number of digits, just create a new list w/ the elements in ascending order. Fortunately, Python has a function that does exactly that, the built-in function sorted:
def is_ascending(lst): return sorted(lst) == lst