Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
4
ile = int(input()) for i in range(ile): ciag = input().split(' ') parzyste = 0 nieparzyste = 0 i = 0 while int(ciag[i]) != 0: if int(ciag[i])%2==0: parzyste = parzyste + int(ciag[i]) else: nieparzyste = nieparzyste + int(ciag[i]) i += 1 print(parzyste,nieparzyste)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
sensi
shuru4
CICLO WHILE PYTHON 3
PyLSV
😚😚😚
List comprehension to search and add
Ваня и забор
PyBatScoreAbs
prime factorizer
P
Please log in to post a comment.