There was an error while loading. Please reload this page.
1 parent 13f7140 commit f8084d9Copy full SHA for f8084d9
1 file changed
sorts/gnome_sort.py
@@ -51,6 +51,9 @@ def gnome_sort(lst: list) -> list:
51
52
53
if __name__ == "__main__":
54
+ import doctest
55
+
56
+ doctest.testmod()
57
user_input = input("Enter numbers separated by a comma:\n").strip()
58
unsorted = [int(item) for item in user_input.split(",")]
59
print(gnome_sort(unsorted))
0 commit comments