Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Finding the lowest number and count the amount of occurrences
list_of_numbers = [1, 2 , 1, 3]
def find_count_of_lowest(numbers):
lowest_number = numbers[0]
count_lowest_number = 0
for number in numbers:
if number == lowest_number:
count_lowest_number += 1
return count_lowest_number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.