CBSE BOARD X, asked by kavithakoushik2005, 6 months ago

Write a Python program to find the sum of all odd numbers in a list​

Answers

Answered by Itzinnocentdairymilk
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 Innocentgirl58
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