Question: PYTHON Write code for the following a) Create a list numbers: 49, -64, 77, -25 b) Use the sum function and print the sum of
PYTHON Write code for the following a) Create a list numbers: 49, -64, 77, -25 b) Use the sum function and print the sum of all values of the list. c) Print all elements of the list that are greater than 0. d) Print out the list sorted from largest to smallest. Output Example Sum of all Values = 37 Elements Greater than 0 are: 49 77 List Sorted is : [77, 49,-25, -64]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
