Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = input().split(',')
- numList = []
- zeroCount = 0
- for x in range(0,len(num)):
- numList.append(int(num[x]))
- print(numList)
- zeroCount = numList.count(0)
- for i in range (0, len(numList)):
- numList.remove(0)
- print(zeroCount)
- print(numList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement