Question: In Python Write a test program: nums1 = [2, 4, 4, 1, 8, 8, 10] nums2 = [500, 500, 400, 800, 900, 900, 1500, 700]
- In Python
- Write a test program:
nums1 = [2, 4, 4, 1, 8, 8, 10]
nums2 = [500, 500, 400, 800, 900, 900, 1500, 700]
- Read in the sample numbers from above and store them in a list. (Use input() but enter the numbers above)
- Invoke the function using the list you created
- Display the greatest increase and the last duplicate number.
- Sample output using numbers from num1:
Greatest Increase: 7
Last Duplicate: 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
