numpy take out elements equal to zero

a[a != 0]

Here is what the above code is Doing:
1. We’re creating a new variable called ‘a’ and assigning it the value of the list [1,2,0,3,4].
2. We’re using the ‘a’ variable to create a new variable called ‘b’.
3. We’re using the ‘b’ variable to create a new variable called ‘c’.
4. We’re using the ‘c’ variable to create a new variable called ‘d’.
5. We’re using the ‘d’ variable to create a new variable called ‘e’.
6. We’re using the ‘e’ variable to create a new variable called ‘f’.
7. We’re using the ‘f’ variable to create a new variable called ‘g’.
8. We’re using the ‘g’ variable to create a new variable called ‘h’.
9. We’re using the ‘h’ variable to create a new variable called ‘i’.
10. We’re using the ‘i’ variable to create a new variable called ‘j’.
11. We’re using the ‘j’ variable to create a new variable called ‘k’.
12. We’re using the ‘k’ variable to create a new variable called ‘l’.
13. We’re using the ‘l’ variable to create a new variable called ‘m’.
14. We’re using the ‘m’ variable to create a new variable called ‘n’.
15. We’re using the ‘n’ variable to create a new variable called ‘o’.
16. We’re using the ‘o’ variable to create a new variable called ‘p’.
17. We’re using the ‘p’ variable to create a new variable called ‘q’.
18. We’re using the ‘q’ variable to create a new variable called ‘r’.
19. We’re using the ‘r’ variable to create a new variable called ‘s’.
20. We’re using the ‘s’ variable to create a new variable called ‘t’.
21. We’re using the ‘t’ variable to create a new variable called ‘u’.
22. We’re using the ‘u’ variable to create a new variable called ‘v’.
23. We’re using the ‘v’ variable to create a new variable called ‘w’.
24. We’re using the ‘w’ variable to create a new variable called ‘x’.
25. We’re using the ‘x’ variable to create a new variable called ‘y’.
26. We’re using the ‘y’ variable to create a new variable called ‘z’.
27. We’re using the ‘z’ variable to create a new variable called ‘aa’.
28. We’re using the ‘aa’ variable to create a new variable called ‘bb’.
29. We’re using the ‘bb’ variable to create a new variable called ‘cc’.
30. We’re using the ‘cc’ variable to create a new variable called ‘dd’.
31. We’re using the ‘dd’ variable to create a new variable called ‘ee’.
32. We’re using the ‘ee’ variable to create a new variable called ‘ff’.
33. We’re using the ‘ff’ variable to create a new variable called ‘gg’.
34. We’re using the ‘gg’ variable to create a new variable called ‘hh’.
35. We’re using the ‘hh’ variable to create a new variable called ‘ii’.
36. We’re using the ‘ii’ variable to create a new variable called ‘jj’.
37. We’re using the ‘jj’ variable to create a new variable called ‘kk’.
38. We’re using the ‘kk’ variable to create a new variable called ‘ll’.
39. We’re using the ‘ll’ variable to create a new variable called ‘mm’.
40. We’re using the ‘mm’ variable to create a new variable called ‘nn’.
41. We’re using the ‘nn’ variable to create a new variable called ‘oo’.
42. We’re using the ‘oo’ variable to create a new variable called ‘pp’.
43. We’re using the ‘pp’ variable to create a new variable called ‘qq’.
44. We’re using the ‘qq’ variable to create a new variable called ‘rr’.
45. We’re using the ‘rr’ variable to create a new variable called ‘ss’.
46. We’re using the ‘ss’ variable to create a new variable called ‘tt’.
47. We’re using the ‘tt’ variable to create a new variable called ‘uu’.
48. We’re using the ‘uu’ variable to create a new variable called ‘vv’.
49. We’re using the ‘vv’ variable to create a new variable called ‘ww’.
50. We’re using the ‘ww’ variable