0% found this document useful (0 votes)
33 views1 page

31(Count Even and Odd)

Uploaded by

selvaufo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

31(Count Even and Odd)

Uploaded by

selvaufo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

evodTuple=(2,33,45,88,77,98,54,0,17)

print("Even and odd tuple items=",evodTuple)


tEvenCount=tOddCount=0
for i in range(len(evodTuple)):
if(evodTuple[i]%2==0):
tEvenCount=tEvenCount+1
else:
tOddCount=tOddCount+1
print('The Count of Even Number in the Tuple=',tEvenCount)
print('The Count of Odd Number in the Tuple=',tOddCount)

You might also like