lint fixes

This commit is contained in:
Anne Barela 2022-11-30 11:34:12 -05:00 committed by GitHub
parent 33078e4500
commit f0398d570a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,12 +80,12 @@ def find_mode(x):
should mode not be found
"""
n = len(x)
if n == 0: # If somehow there is a null array
return 0;
if n == 1: # In trivial case of a one element array
return x[0]; # just return the element as the mode.
if n == 0: # If somehow there is a null array
return 0
if n == 1: # In trivial case of a one element array
return x[0] # just return the element as the mode.
max_count = 0
mode = 0