Земцов Марк, 420 группа CopyPaste 1415
Капранов Степан Сергеевич 427 CopyPaste 1689
f1import astf1import ast
22
t3def copypaste(AB):t3def copypaste(onetwo):
4    for a_el, b_el in zip(ast.walk(ast.parse(A)), ast.walk(ast.parse(B))):4    for first, second in zip(ast.walk(ast.parse(one)), ast.walk(ast.parse(two))):
5        if type(a_el) != type(b_el):5        if type(first) != type(second):
6            return False6            return False
7    return True7    return True
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op