Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def IsAscending(a):
- index = 0
- while index < len(a) - 1:
- if a[index] >= a[index + 1]:
- return 'NO'
- index += 1
- return 'YES'
- num_list = list(map(int, input().split()))
- print(IsAscending(num_list))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement