inputFile = open("./input.txt", 'a+') for c in inputFile: area = inputFile.read(4) check = "" for a in area: if a not in check: check += a if(check==area): break print("Stelle des heiligen Pandabären: ", inputFile.tell()) print("Der Text an der Stelle: ", inputFile.seek(inputFile.tell()-1)) #hilf