From f0398d570a7dcaa51e5dc313b966417d16687325 Mon Sep 17 00:00:00 2001 From: Anne Barela <1911920+TheKitty@users.noreply.github.com> Date: Wed, 30 Nov 2022 11:34:12 -0500 Subject: [PATCH] lint fixes --- Trinket_Ultrasonic_Rangefinder/code.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Trinket_Ultrasonic_Rangefinder/code.py b/Trinket_Ultrasonic_Rangefinder/code.py index c82f4a73e..abaa43af9 100644 --- a/Trinket_Ultrasonic_Rangefinder/code.py +++ b/Trinket_Ultrasonic_Rangefinder/code.py @@ -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