Write The Python Program To Count The Number Of Zeroes in A a Tuple.

 Write The Python Program To Count the Number Of Zeroes in the Following Tuple.

t = (25,47,0,69,45,0,456,0,44,0,3)




Code :

t=(25,47,0,69,45,0,456,0,44,0,3)
print(t.count(0))

Output: 4

Download Source Code



Comments

Popular posts from this blog

Write a Python Program To Calculate The Grade Of A Student

Write Python Program To Store Seven Fruits Name In a List Enter By The User