DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
check condition over a range in python
def is_prime(candidate): return all( candidate % n != 0 for n in range(2, candidate) )
Source by treyhunner.com #
PREVIOUS
NEXT
Tagged:
#check
#condition
#range
#python
ADD COMMENT
Topic
COMMENT
Name
6+4 =
Submit