Question: Write a Python program to sum all positive values given by the user. The user will enter 10 numbers (some positive and some negative numbers).
Write a Python program to sum all positive values given by the user. The user will enter 10 numbers (some positive and some negative numbers). Your program should include and usea function called isPositive which returns a boolean value indicating if the value passed to the method is positive or not. If the number is positive, your program should add that number to the sum. Your program should display the final sum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
