Advertisement
Olegos

A

Apr 27th, 2023
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | Sports | 0 0
  1. n = int(input())
  2. numbers = list(map(int, input().split()))
  3.  
  4. count = 0
  5. for num in numbers:
  6.     if num & 1 == 1:
  7.         count += 1
  8.  
  9. print(count)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement