zjfz-2019-s402281/intro/Task109.py

13 lines
265 B
Python
Raw Normal View History

2020-01-12 13:11:00 +01:00
# -*- 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