12311k

Untitled

Mar 22nd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def filter_by_genre(data, genre):
  2. result = []
  3. for row in data:
  4. genres = row[4]
  5. if genre in genres:
  6. result.append(row)
  7. return result
Add Comment
Please, Sign In to add comment