def bubble_sort(arr):n = len(arr)for i in range(n):for j in range(n - i - 1):if arr[j] > arr[j + 1]:arr[j], arr[j + 1] = arr[j + 1], arr[j]
step 1 / 40
Timeline
Go back in time
Drag the timeline to any moment. Every variable shows the value it had right then, and the line that ran is highlighted.







