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, Create n Empty Dictionary Allow 4 Friends To, Enter Their Favorite Programming Language As values and User Keys as their Name Assume That The Names Are Unique.

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