Question: Could you help me to fix my code in python? I want to print the list of numbers as in expected output 1.1 Run the

Could you help me to fix my code in python?

I want to print the list of numbers as in "expected output"

Could you help me to fix my code in python? I wantto print the list of numbers as in "expected output" 1.1 Runthe script from the command line and check that the output is

correct. The command line arguments are in order ('lab2_5_1.txt' and then 'lab2_5_2.txt')

ected output i Actual output 1. [100,65,.55,.46,45,40,.32,.23,.19,.17,.14,.9,9..8,.6,4,.1] Case insensitive i Ignore trailingwhitespace i Ignore all whitespace i Substring i 2.1 Run the script

1.1 Run the script from the command line and check that the output is correct. The command line arguments are in order ('lab2_5_1.txt' and then 'lab2_5_2.txt') ected output i Actual output 1. [100,65,.55,.46,45,40,.32,.23,.19,.17,.14,.9,9..8,.6,4,.1] Case insensitive i Ignore trailing whitespace i Ignore all whitespace i Substring i 2.1 Run the script from the command line and check that the output is correct. The command line arguments are in opposite order ('lab2_5_2.txt' and then 'lab2_5_1.txt') xpected output i Actual output 1. [86,69,52,47,45,36,28,16,12,12,5,44,2] 86695247453628161212542 Case insensitive i Ignore trailing whitespace i gnore all whitespace i Substring i Regex i def main(): if len(sys.argv) != 3 : print("Invalid Input") quit() file1 = sys.argv[1] file2 = sys.argv[2] num_list_1 = read_file(file1) num_list_2 = read_file(file2) num_list_1 = filter_odd_or_even(num_list_1, True) num_list_2 = filter_odd_or_even(num_list_2, False) numbers= num_list_1 + num_list_2 reversed_bubble_sort(numbers) for i in numbers: print(i, end=" ") name_=="_main_": main() The one where numbers needs to be sorted (lab2_5_1.txt) \[ \begin{array}{|llllllll} \leftrightarrow & \text { lab2_5_1.txt } \\ 1 & 1 & 9 & 4 & 12 & 17 & 23 \\ 2 & 45 & 2 & 9 & 65 & 19 & 55 \\ 3 & 12 & 86 & 36 & 28 & 52 \\ 4 & 16 & & & & & \\ \end{array} \] The one where numbers needs to be sorted (lab2_5_2.txt) 1ab2_5_2.txt 123456456324546847144069100

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!