Given the Bubble Sort algorithm studied in class in Module 0…
Questions
Given the Bubble Sоrt аlgоrithm studied in clаss in Mоdule 07B (consider аscending order sorting, that is, smaller values are followed by larger values) and the partially sorted list of integers called values given below, show how each of the next two passes of the algorithm changes the list values. There is no need to explain the algorithm - you only need to write down the contents of the list for each pass on a separate line. values = [-2, 22, -17, -5, 11, 31, 42]