Skip to content

Commit 9ca5b6a

Browse files
level 18 first step
1 parent 65287ef commit 9ca5b6a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

18.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import difflib
2+
3+
4+
def main():
5+
left, right = first_step()
6+
second_step(left, right)
7+
8+
9+
def first_step():
10+
deltas = open("swan/deltas", 'r')
11+
left = ""
12+
right = ""
13+
while True:
14+
line = deltas.readline()
15+
if line:
16+
left += line[:53]
17+
left += "\n"
18+
right += line[56:]
19+
else:
20+
break
21+
return left, right
22+
23+
24+
def second_step(left, right):
25+
pass
26+
27+
28+
if __name__ == "__main__":
29+
main()

0 commit comments

Comments
 (0)