From ee19de77a2c596bec2fd1dc4f9a562db61254b63 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Fri, 2 Dec 2022 18:34:42 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/readme.md | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/legacy/readme.md b/legacy/readme.md index 170b7eea..bdffca1f 100644 --- a/legacy/readme.md +++ b/legacy/readme.md @@ -39,39 +39,9 @@ async function example() { ) console.log(response) } - -// which outputs: - -/* -Here is an implementation of bubble sort in Python: - -\`\`\`python -def bubble_sort(lst): - # Set the initial flag to True to start the loop - swapped = True - - # Keep looping until there are no more swaps - while swapped: - # Set the flag to False initially - swapped = False - - # Loop through the list - for i in range(len(lst) - 1): - # If the current element is greater than the next element, - # swap them and set the flag to True - if lst[i] > lst[i + 1]: - lst[i], lst[i + 1] = lst[i + 1], lst[i] - swapped = True - - # Return the sorted list - return lst -\`\`\` -*/ ``` -Here's the same response rendered as markdown: - -Here is an implementation of bubble sort in Python: +Which outputs: ```python def bubble_sort(lst):