code_01.py ​
Metadata ​
- Author — Amit Dutta (amitdutta4255@gmail.com)
- Last updated — 18 Jun 2026
- License — MIT
Problem Statement ​
Problem Statement
Coming back to basics after months.
Source Code ​
Printing the code
To print this file, open it on GitHub and click Raw before printing, or use the Download Raw button above and print directly from that page.
python
# Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jun 2026
# Repo: https://github.com/notamitgamer/bsc
# License: MIT
# Coming back to basics after months.
n = int(input("How many numbers? "))
even_count = 0
odd_count = 0
for i in range(n):
num = int(input("Enter a number: "))
if num % 2 == 0:
even_count += 1
else:
odd_count += 1
print("Even numbers:", even_count)
print("Odd numbers:", odd_count)1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19