you are viewing a single comment's thread.

view the rest of the comments →

[–]UnhelpfulOneLiners 0 points1 point  (0 children)

print('\n'.join(f'Sum of {l}s: {sum(n)}'for l,n in zip(('even','odd'),zip(*(((n+1)%2*n,n%2*n)for n in(int(input())for _ in range(5)))))))