Removing values from a list (Shortening it in the process)

Hi Guys,

I have a list in Dynamo that is largely made up of 0’s. I would like to remove these 0’s thereby shortening the list as opposed to having a list full of ‘null’.

I’m sorry I don’t have a picture at the moment (posting from phone).

Hi, try some python code:

Both worked excellently for me. Thank you very much.