spacepaste

  1.  
  2. def sorder(s):
  3. l = []
  4. for i in range(1,len(s)):
  5. if i-1 < len(s)-1:
  6. if s[i-1] >= s[i]:
  7. l.append(s[i])
  8. print(l)
  9. return l
  10. def almostIncreasingSequence(sequence):
  11. s = sequence
  12. lis=[]
  13. l = sorder(s)
  14. if len(l) <= 1:
  15. return True
  16. else:
  17. return False
  18.