LearnPy Hub
← Exceptions problems
Easy

Count the Bad Lines

Read n, then n lines. Count how many lines are NOT whole numbers by catching ValueError, and print the count.

Input

n, then n lines.

Output

One integer.

Sample 1

Input
3
1
x
3
Output
1

Sample 2

Input
2
5
6
Output
0
solution.py
Output appears here
Count the Bad Lines · Python practice problem · LearnPy Hub