600-Python Simple Bubble Sort

404 views · Published 30 June 2017 · 4:30 · Indexed 21 September 2026

Channel: tsbrownie · 2017 · Science & Technology

Watch on YouTube

This is part of a folder (a little library) of small bits of tested code that work.  Things like file I/O, interrupts, GPIO definitions, print examples, etc.  I don't have to re-invent the wheel every time I write a program.  I can go to that folder, copy the pieces I need and be done with my program quickly and with less thrashing.

MATERIALS
- Library folder
- Individual files for each function (ex: FileIO.py, Array.py, ...)

PYTHON SOFTWARE LIBRARY (grouped by type and listed in order of difficulty)
001-Python Library of Tips & Tricks
https://www.youtube.com/watch?v=40D7QIE9IRA

103-Python-File Read
https://www.youtube.com/watch?v=QQi_L7FUn7Q

104-Python (Text) File Write 
https://www.youtube.com/watch?v=SSTA5vRUgYE

105-Python - Directory File Search & Verify 
https://www.youtube.com/watch?v=wvdD07R501o

110-Python-Floating Point Accuracy 
https://www.youtube.com/watch?v=ksNjjY-sl3o

120-Python - Format Numbers 
https://www.youtube.com/watch?v=tJFvvGa72H8

130-Python - Simple Print Formatting 
https://www.youtube.com/watch?v=jv1156O4UMY

140-Python - if, elif, else & CASE? 
https://www.youtube.com/watch?v=rN2R2aciyGs

201-Python - 2D Array Example 
https://www.youtube.com/watch?v=QgfUT7i4yrc

202-Python - 3D Array Example
https://www.youtube.com/watch?v=YlY1rF6pjZU

210-Python - Get Multiple Variables With 1 Line of Input! 
https://www.youtube.com/watch?v=K8l9Lo967Is

211-Python - Get Multiple Variables From 1 Lin - Split/Replace Complex 
https://www.youtube.com/watch?v=C_Rsf63dTCk

301-Python - Function, Simple 
https://www.youtube.com/watch?v=RFzdLOrmHnU

302-Python - Function, Complex 
https://www.youtube.com/watch?v=4LqibspABWs

310-Python - Random Numbers (integer & float) 
https://www.youtube.com/watch?v=4-q-5q1c30U

410-Python - Beep Sound
https://youtu.be/Q6OhCg_iwVM

420-Python Music, Simple
https://youtu.be/-9ewGvsLw6U

430-Python Music, Advanced
https://youtu.be/RBDCcUSanqg

500-Python - Graphics, Simple Circle Example
https://www.youtube.com/watch?v=8aB9AOEi0Xw

510-Python - Graphics, Line Example
https://youtu.be/ZaX3mU45w7U

520-Python - Graphics, Sine Wave Example 1
https://youtu.be/c8hhW67FtmQ

530-Python - Graphics, Sine Wave Example 2
https://youtu.be/Qd2aQKeLtxc

540-Python - Graphics, Tiling / Tiles
https://youtu.be/9yIN0KRT_60

550-Python - Graphics, Tic Tac Toe Grid
https://youtu.be/kLwTp7iRock

600-Python - Bubble Sort, Simple
https://youtu.be/suxIPgLToMA

601-Python - Bubble Sort, More Efficient
https://youtu.be/ulNXB5vVUxs

610-Python - File Sort
https://youtu.be/LdJU024oEsI

701-Python - Bit Shifting (needed for I2C stuff)
https://www.youtube.com/watch?v=li1xGSlJKrw

710-Python - Recursion
https://www.youtube.com/watch?v=pTrbv0Z8Jck

More from this channel