forked from miczar1/djfz-24_25
Compare commits
No commits in common. "master" and "master" have entirely different histories.
@ -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
|
||||
|
@ -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"))
|
@ -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))
|
Loading…
Reference in New Issue
Block a user