daily pastebin goal
88%
SHARE
TWEET

Untitled

a guest Jan 13th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def sorder(s):
  2.  
  3.     l = []
  4.    
  5.     for i in range(1,len(s)):
  6.         if i-1 < len(s)-1:
  7.             if s[i-1] >= s[i]:
  8.                 l.append(s[i])
  9.                
  10.     print(l)
  11.     return l
  12.  
  13. def almostIncreasingSequence(sequence):
  14.  
  15.     s = sequence
  16.     lis=[]
  17.    
  18.     l = sorder(s)
  19.  
  20.     if len(l) <= 1:
  21.         return True
  22.     else:
  23.         return False
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand