fabi.s

Generation

generate functionTue, 16 Jan 2024

bubblesort

bubblesort(lst): for i in range(len(lst) - 1): for j in range(len(lst) - i - 1): if lst[j] > lst[j + 1]: lst[j], lst[j + 1] = lst[j + 1], lst[j] def main(): lst = [random.randint(0, 100

Questions about programming?Chat with your personal AI assistant