Skip to content

Commit ac594d8

Browse files
authored
Update smooth_max.py
1 parent 11247b9 commit ac594d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2_intermediate/chapter10/solutions/smooth_max.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
curr_elem = two_d_list[outer_idx][inner_idx]
1515
to_check = curr_elem + inner_idx
1616
if to_check % 2 == 0:
17-
if curr_max == None or curr_elem > curr_max:
17+
if curr_max is None or curr_elem > curr_max:
1818
curr_max = curr_elem
1919

2020
print(curr_max)

0 commit comments

Comments
 (0)