Skip to content

Commit

Permalink
Cleaned up version of StalinSort.py
Browse files Browse the repository at this point in the history
Fixed:
Line 22:5: E303 too many blank lines (2)
Line 25:1: E305 expected 2 blank lines after class or function definition, found 1
  • Loading branch information
SleepingNerd committed Feb 26, 2022
1 parent 0b761f0 commit a9bcf61
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Python/StalinSort.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def stalin_sort(lis):
else:
i += 1


return lis


# Driver code
if __name__ == '__main__':
lis = [20, 0, 1, 188, 20, 100, 2, 10]
print(f"Uncorrected list: {lis}")
print(f"Corrected list: {stalin_sort(lis)}")
example_lis = [20, 0, 1, 188, 20, 100, 2, 10]
print(f"Uncorrected list: {example_lis}")
print(f"Corrected list: {stalin_sort(example_lis)}")

0 comments on commit a9bcf61

Please sign in to comment.