Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 1, 2024
1 parent f214a0f commit 8aea97a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sorts/simple_bubble_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def bubble_sort(nums: list[int]) -> list[int]:
nums[j], nums[j + 1] = nums[j + 1], nums[j]
return nums


nums = [65, 66, 12, 4, 9, 10, 32, 2] # 01
ordered_nums = bubble_sort(nums) # 06
print("The result:", ordered_nums)

if __name__ == "__main__":
import doctest
doctest.testmod()

doctest.testmod()

0 comments on commit 8aea97a

Please sign in to comment.