Advertisement
darya_leushkina

Массивы задание 8

Dec 14th, 2020
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. f = 0
  2. n = int(input())
  3. arr = list(map(int, input().split()))
  4. for i in range(n):
  5.     if arr[i] % 2 != 0:
  6.         f += 1
  7. print(f)
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement