Ответ:
list_ = [int(input(f"{x + 1}: ")) for x in range(10)]
even = len(list(filter(lambda x: x%2==0, list_)))
noteven = len(list(filter(lambda x: x%2!=0, list_)))
print("Парних:", even, "\nНепарних:", noteven)
Объяснение:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
list_ = [int(input(f"{x + 1}: ")) for x in range(10)]
even = len(list(filter(lambda x: x%2==0, list_)))
noteven = len(list(filter(lambda x: x%2!=0, list_)))
print("Парних:", even, "\nНепарних:", noteven)
Объяснение: