NAGARAJAN
Saturday, September 14, 2013
how do I print in python if a list contains only 0s?
how do I print in python if a list contains only 0s?
how do i print in python if a list contains only 0s??
list1=[0,0,0,0,0,0]
if list1 has all 0s
print("something")
I want the output to be "something"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment