We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11247b9 commit ac594d8Copy full SHA for ac594d8
2_intermediate/chapter10/solutions/smooth_max.py
@@ -14,7 +14,7 @@
14
curr_elem = two_d_list[outer_idx][inner_idx]
15
to_check = curr_elem + inner_idx
16
if to_check % 2 == 0:
17
- if curr_max == None or curr_elem > curr_max:
+ if curr_max is None or curr_elem > curr_max:
18
curr_max = curr_elem
19
20
print(curr_max)
0 commit comments