Computer Science, asked by vpranav75, 5 months ago

Write Program to find the sum of all odd values in a tuple in python​

Answers

Answered by Anonymous
3

Answer:

In this python program to find Sum of Even and Odd Numbers in a List, User entered items = [2, 3, 4, 5], Even_Sum = 0, Odd_Sum = 0. if(NumList[1] % 2 == 0) => if(3 % 2 == 0) – Condition is False, so it enters into the Else block. if(5 % 2 == 0) – Condition is False, so it enters into Else block.

Answered by Anonymous
0

Tuples are immutable i.e the value cannot be changed. So, Option D is correct.

Similar questions