Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sorts/bubble_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@ def bubble_sort_recursive(collection: list[Any]) -> list[Any]:


if __name__ == "__main__":
# doctest is a Python module used for testing your code automatically.
import doctest

# sample : It picks unique random items from a list, set, or sequence.
from random import sample

# timeit is used to measure how long a piece of code takes to run.
from timeit import timeit

doctest.testmod()
Expand Down