def f():
new_list = list(map(int, input('Введите числа через пробел: ').split(' ')))
return [x for x in new_list if not (x < 0 and x % 2 == 0)]
print(f())
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
def f():
new_list = list(map(int, input('Введите числа через пробел: ').split(' ')))
return [x for x in new_list if not (x < 0 and x % 2 == 0)]
print(f())