Given the Bubble Sort algorithm studied in class, use the fo…

Given the Bubble Sort algorithm studied in class, use the following list to show the contents of the list for the next first two passes of the algorithm. There is no need to explain the algorithm – you only need to write down the contents of the list for each pass and iteration on a separate line. 32 -19  27 -5 -11 22 5

You are given a file “data.txt” that contains words from the…

You are given a file “data.txt” that contains words from the English Language. The text is stored in the file as one sentence per line. The contents of the file  is similar to the following image:   Write Python code that does the following: Read the contents of the file and store each word in a list called data.  From the data list, create a list called that length_six such that each word in length_six has length 6.

Given the Selection Sort algorithm studied in class, use the…

Given the Selection Sort algorithm studied in class, use the following list to show the contents of the list for the first three passes of the algorithm. 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. 11 7  32 -19 -5 -21 1

Given the Selection Sort Algorithm covered in Module 07 B (c…

Given the Selection Sort Algorithm covered in Module 07 B (consider ascending order sorting, that is, smaller values are followed by larger values) and the list of integers called values given below, show how each of the next three passes of the algorithm changes the list values.  How many swaps did you make in total in these passes?   values = [-2, 0, 3, 9, 11, 5, 16]  

Write a Python program that contains a function called creat…

Write a Python program that contains a function called create_list that accepts two arguments: a list called values, and a number n. Assume that the list values contains numbers. The function should create and return a list of numbers in the values list that are greater than the number n. Call the create_list() function so that it can return all elements in the following list that are greater than 35. Print out the list of numbers that create_list() returns. numbers = [19, 22, 45, 36, 25, 44, 49, 29, 50, 47]