LearnPy Hub
← File Handling problems
Easy

Count Empty Lines

Read n and n lines (some may be empty) and write them to e.txt. Read the file and print how many lines are empty.

Input

n, then n lines.

Output

One integer.

Sample 1

Input
3
a

b
Output
1

Sample 2

Input
2
x
y
Output
0
solution.py
Output appears here
Count Empty Lines · Python practice problem · LearnPy Hub