Question: Create a Python program in which you have a list containing a mixture of positive and negative doubles (decimal numbers). Determine the sum of the

Create a Python program in which you have a list containing a mixture of positive and negative doubles (decimal numbers). Determine the sum of the positive numbers in the list as well as the sum of the negative numbers in the list using python. Make sure to print out both of the sums at the end. Your list must have at least 10 numbers and must contain both positive numbers and negative numbers. In order to do this, you must use a loop and conditional statements to accomplish this.

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!