Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-*- coding: utf-8 -*-
- b = []
- a = list(map(int, input().split()))
- for i in range (len(a)):
- if a[i] % 2 == 0:
- b.insert(0, a[i])
- else:
- b.append (a[i])
- print (b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement