Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Check if all of the numbers are positive

Python: Check if all of the numbers are positive
{filelink=16207}

numbers=[1, 5, 7, 9,]
if all(x>0 for x in numbers):
    print "all of the numbers are positive"
else:
    print "some of the numbers are not positive"

Users who found this page were searching for:

  • python check all
  • how to create a button in python
  • python find positive numbers
  • how to check for positive numbers in python
  • how to use math.pi python
  • python positive number checker

No comments yet.

Leave a Comment