Guest User

Untitled

a guest
Oct 18th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def split_list(words):
  2. # declare the list
  3. lst = []
  4. # find the first position
  5. first_pos=words.find("DOG")
  6. # find the first_pos
  7. first = words [0:first_pos]
  8. lst.append(first)
  9. return lst
Add Comment
Please, Sign In to add comment