plik = open("binarne.txt") licznik = 0 for tekst in plik: tekst = tekst.strip() zle = False for i in range(len(tekst)//4): blok = tekst[i*4:i*4+4] if int(blok, 2) > 9: zle = True if zle: licznik = licznik + 1 print(licznik)