Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

3 changed files with 0 additions and 26 deletions

View File

@ -1,11 +0,0 @@
with open("shakespeare.in", encoding="utf8") as f:
lines = f.readlines()
for line in lines:
line = line.strip()
line = line.split()
for word in line:
if word[:6] == "Hamlet":
result = " ".join(line)
print(result)
break

View File

@ -1,5 +0,0 @@
with open("polish_wiki_excerpt.in", encoding="utf8") as f:
lines = f.readlines()
for line in lines:
if "Pies " in line or " pies " in line or "pies\n" in line:
print(line.strip("\n"))

View File

@ -1,10 +0,0 @@
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))