13 lines
265 B
Python
13 lines
265 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""Rozwiązanie zadania 107."""
|
|
|
|
def count_yes_lines(filename):
|
|
"policz linie"
|
|
result = 0
|
|
with open(filename, 'r') as text:
|
|
for line in text:
|
|
if line == "YES\n":
|
|
result += 1
|
|
return result
|