A sample python program to demonstrate a simple bubble sort, originally written by Gary of 'Gary Explains' on YouTube: https://www.youtube.com/watch?v=WOjc48sVo6E& I've transcribed it from Gary's video to accompany a blog post I'm writing at: https://mmdc.net/what-is-a-bubble-sort/
I changed it a bit here and there to run smoothly using Python3 as well as adding some sleep(1) lines to make the output more readable when run.