Untitled

 avatar
unknown
plain_text
2 years ago
122 B
8
Indexable
for number in file:
    even_count = sum(int(num) % 2 == 0 for num in file)

print("Liczba liczb parzystych:", even_count)
Editor is loading...