Author: Hayden Smith 2021
Why?
What?
Can be installed via: pip3 install hypothesis
def bubblesort(numbers):
numbers = numbers.copy()
for _ in range(len(numbers) - 1):
for i in range(len(numbers) - 1):
if numbers[i] > numbers[i+1]:
numbers[i], numbers[i+1] = numbers[i+1], numbers[i]
return numbers