Hello I am starting to use Python.
I found a nice little example for subsituting and splitting texts and counting words separated by defined expressions (in the example , and blanks). Unfotunately there is an error in this example regarding the casting of strings: (see the code below):


#zerleg.py
import re
try:
fh=open('input. txt','r')
summe=0
n=0
while 1:...