Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- increase = 0
- l = a.strip().split()
- int_list = [int(i) for i in l]
- increase = 0
- previous = None
- for i in int_list:
- print("previous: {} - Compare: {}".format(previous, i))
- if not previous:
- print("first")
- elif i > previous:
- increase = increase + 1
- print("Increase: {}".format(increase))
- previous = i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement