sorry m8s i wrote a klausur today
This commit is contained in:
parent
3284a8e002
commit
35d05b5d18
18
6/tuer6.py
18
6/tuer6.py
@ -1,13 +1,19 @@
|
||||
inputFile = open("./input.txt", 'a+')
|
||||
|
||||
for c in inputFile:
|
||||
area = inputFile.read(4)
|
||||
with open("./input.txt", 'r') as input_file:
|
||||
i = 0
|
||||
tmp_str = ""
|
||||
|
||||
for c in input_file.read():
|
||||
tmp_str += c
|
||||
i += 1
|
||||
if len(tmp_str) > 3:
|
||||
area = tmp_str
|
||||
tmp_str = ""
|
||||
check = ""
|
||||
for a in area:
|
||||
if a not in check:
|
||||
check += a
|
||||
if(check==area):
|
||||
if check==area:
|
||||
break
|
||||
|
||||
print("Stelle des heiligen Pandabären: ", inputFile.tell())
|
||||
print("Der Text an der Stelle: ", inputFile.seek(inputFile.tell()-1)) #hilf
|
||||
print(tmp_str)
|
Loading…
Reference in New Issue
Block a user