RunMarkdownIn [ ]: #todoTask 8Write a python program that takes a list from user containing both positive and negative numbers. The program then finds two pairs of values whosesummation is...


Downloads/<br>CSE110 Lab Assignment 7 (Sortin x<br>O localhost:8889/notebooks/Downloads/CSE110%20Lab%20Assignment%207%20(Sorting%20and%20Searching).ipynb<br>C jupyter CSE110 Lab Assignment 7 (Sorting and Searching) Last Checkpoint: 4 hours ago (unsaved changes)<br>Logout<br>File<br>Edit<br>View<br>Insert<br>Cell<br>Kernel<br>Widgets<br>Help<br>Trusted<br>Python 3 O<br>> Run<br>Markdown<br>In [ ]: #todo<br>Task 8<br>Write a python program that takes a list from user containing both positive and negative numbers. The program then finds two pairs of values whose<br>summation is closest to zero.<br>Sample Input 1<br>list_one = [-10, 15, 2, 4, -4, 7, -8]<br>Sample Output 1<br>Two pairs which have the smallest sum = 4 and -4<br>========<br>Sample Input 2<br>list_one = [1, -8, 4, -7, -20, 26, 70, -85]<br>Sample Output 2<br>Two pairs which have the smallest sum = 4 and -7<br>In [ ]: #todo<br>5:52 PM<br>12/27/2021<br>

Extracted text: Downloads/ CSE110 Lab Assignment 7 (Sortin x O localhost:8889/notebooks/Downloads/CSE110%20Lab%20Assignment%207%20(Sorting%20and%20Searching).ipynb C jupyter CSE110 Lab Assignment 7 (Sorting and Searching) Last Checkpoint: 4 hours ago (unsaved changes) Logout File Edit View Insert Cell Kernel Widgets Help Trusted Python 3 O > Run Markdown In [ ]: #todo Task 8 Write a python program that takes a list from user containing both positive and negative numbers. The program then finds two pairs of values whose summation is closest to zero. Sample Input 1 list_one = [-10, 15, 2, 4, -4, 7, -8] Sample Output 1 Two pairs which have the smallest sum = 4 and -4 ======== Sample Input 2 list_one = [1, -8, 4, -7, -20, 26, 70, -85] Sample Output 2 Two pairs which have the smallest sum = 4 and -7 In [ ]: #todo 5:52 PM 12/27/2021

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here