Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strings = input().split(', ')
- new_list = strings
- for string in strings:
- if string == '0':
- new_list.remove('0')
- new_list.extend('0')
- print(list(map(int, new_list)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement