Hello!
I make a program on Python, which counts the number of certain punctuation marks in the text. Faced a problem: the function counts only the first required character on the line, after which it immediately switches to another one - even if there are the same characters in the rest of the line. What is the problem?:(
punct=0 #счетчик for a in line: if '.' in a: punct=punct + 1 print punct