I have two lists:
description_list = [Cat, Cat, Bat, Horse, Bat, Cow, Pig, Pig]
time_list = [6, 8, 10, 8, 7, 1, 0, 0]
These lists were created from a CSV file. For example: Cat matches with the number 6 and 8, Bat matches with 10 and 7, and so on.
How do I create a new list called cat_time where I have a list of all of the Cat time values. For example:
cat_time = [6, 8]
[t for d, t in zip(descriptions, times) if d == "Cat"]