Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [x[1:] for x in self.files if x != '/']
- self.files
- for x in self.files
- for x in self.files if x != '/'
- x[1:] for x in self.files if x != '/'
- [x[1:] for x in self.files if x != '/']
- ans = [] # create a new empty list
- for x in self.files: # iterate over it, using x as variable
- if x != '/': # if the element is not 'x'
- ans.append(x[1:]) # add it after removing 1st char
- lst = []
- for x in self.files:
- if x != "/":
- lst.append(x[1:])
- ret = []
- for x in self.files:
- if x != '/':
- ret.append(x[1:])
- return ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement