Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 def redundant_parenthesis(x, y, z): | |
2 # * A111 | |
3 while (x): | |
4 # * A111 | |
5 if ((x or y) and z): | |
6 pass | |
7 # * A111 | |
8 elif (x == max(y, z)): | |
9 pass | |
10 else: | |
11 return | |
12 | |
13 | |
14 def mandatory_parenthesis(x, y, z): | |
15 if (): | |
16 return | |
17 if (x, y, z): | |
18 return | |
19 | |
20 if (x or y) and z: | |
21 return | |
22 if x and (y or z): | |
23 return | |
24 | |
25 if (x or | |
26 y): | |
27 return | |
OLD | NEW |