Write a Python program to find the sum of all odd numbers in a list
Answers
Answered by
8
Program 1
#Python program to find sum of odd and even numbers in a list.
NumList=[] #empty list.
evenSum=0 #declare and initialised variable evenSum to sum of even numbers.
oddSum=0 #declare and initialised variable oddSum to sum of odd numbers.
Number=int(input("Please enter the total number of list elements: "))
hope it will help you ❣️
Answered by
4
Answer:
Program 1
- #Python program to find sum of odd and even numbers in a list.
- NumList=[] #empty list.
- evenSum=0 #declare and initialised variable evenSum to sum of even numbers.
- oddSum=0 #declare and initialised variable oddSum to sum of odd numbers.
- Number=int(input("Please enter the total number of list elements: "))
Similar questions