#==========================================================
# Program to filter out zero's from a list
#==========================================================
my_list = [10, 0, 7, 76, 0, 0, 39, 87]

li = list(filter(lambda a: a != 0 , my_list))

print(li)