3) Write a function called RemoveNum(numList) that takes a pre-defined list. Once the function is called, it asks a user to enter multiple integers until 0 is entered. From entered integers, this...

Please screenshot the output and the code. Also explain the code.
3) Write a function called RemoveNum(numList) that takes a pre-defined list. Once the<br>function is called, it asks a user to enter multiple integers until 0 is entered. From<br>entered integers, this function will remove any matched integer(s) found in the list.<br>Also, function will add unmatched integers to the list. The function returns a list of<br>sorted integers in ascending order. For example<br>numList =<br>[7,2,3,6,5,4,9]<br>#once the function is called e.g., outList = RemoveNum(numList)<br>Enter#1: 2<br>Enter#2: 6<br>Enter#3: 5<br>Enter#4: 8<br>Enter#5:0<br>print(outlist)<br># the expected output is [3, 4, 7, 8, 9]<br>

Extracted text: 3) Write a function called RemoveNum(numList) that takes a pre-defined list. Once the function is called, it asks a user to enter multiple integers until 0 is entered. From entered integers, this function will remove any matched integer(s) found in the list. Also, function will add unmatched integers to the list. The function returns a list of sorted integers in ascending order. For example numList = [7,2,3,6,5,4,9] #once the function is called e.g., outList = RemoveNum(numList) Enter#1: 2 Enter#2: 6 Enter#3: 5 Enter#4: 8 Enter#5:0 print(outlist) # the expected output is [3, 4, 7, 8, 9]

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here