task3 dla simpple, brak danych dla polish_wiki

This commit is contained in:
Robert 2024-10-28 13:00:28 +01:00
parent d9c12d5d2f
commit bf20d2f3a0

10
TaskA03/task3.py Normal file
View File

@ -0,0 +1,10 @@
with open("simple.in", encoding="utf-8") as f:
lines = f.readlines()
for line in lines:
line = line.strip()
line = line.split()
for i in range(len(line)-1):
if line[i][:2] == "19":
if 0 < int(line[i][3:4]) < 99:
if line[i+1][:2] == "r.":
print(" ".join(line))