Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = list(map(int, input().split()))
- n = 0
- for i in range(10):
- if a[n] % 2 != 0:
- t = a[n]
- a.append(t)
- del a[n]
- else:
- n += 1
- print(' '.join(map(str, a)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement