Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. [x[1:] for x in self.files if x != '/']
  2.  
  3. self.files
  4.  
  5. for x in self.files
  6.  
  7. for x in self.files if x != '/'
  8.  
  9. x[1:] for x in self.files if x != '/'
  10.  
  11. [x[1:] for x in self.files if x != '/']
  12.  
  13. ans = [] # create a new empty list
  14. for x in self.files: # iterate over it, using x as variable
  15. if x != '/': # if the element is not 'x'
  16. ans.append(x[1:]) # add it after removing 1st char
  17.  
  18. lst = []
  19. for x in self.files:
  20. if x != "/":
  21. lst.append(x[1:])
  22.  
  23. ret = []
  24. for x in self.files:
  25. if x != '/':
  26. ret.append(x[1:])
  27. return ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement