Advertisement
isahr

Untitled

Apr 27th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1.                 i = 0
  2.         salt = 10
  3.                 if NrTotal < 10:
  4.                     sliceList = sList[ i : (NrTotal - 1) ]
  5.         else:
  6.                     j = 9
  7.             while j+1 <= NrTotal
  8.             sliceList = sList[ i : j ]
  9.            
  10.  
  11.             #shift current List indexes from vmsList with 10
  12.             i += salt
  13.  
  14.             if ( j + salt ) > NrTotal:
  15.  
  16.                 j +=  NrTotal % salt
  17.             else:
  18.  
  19.                 j += salt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement