new_list = [f(o) for o in a_list if o>0]
- a_list: The list we want to perfrom the opertaions.
- o > 0: A optional condition which every element will obey in this
- f(o): Something to do with each element
seven_tensors = [tensor(Image.open(o)) for o in sevens]
sevens: Our list of images of sevens
tensor(Image.open(image)): A function that needs to be executed on each image,
in this case opening the image & creating it as a