I just saw the solutions posted.
Python is known for the ability to compress number of lines of code and it is certainly the way you write code in C/C++ or java.
You can use the concept of list comprehension - a unique feature of python and very popular among modern age python programmers.
Let's take an example:
say I define a list
>>> a = [1,2,0,3,0,5,6,7,0,10]
Now to remove all '0' in the list, just use "list comprehension" i.e.
>>> [x for x in a if x !=0]
[1, 2, 3, 5, 6, 7, 10]
Cool right !!