Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Check if number in range


range_1 = range(2, 40)
number = 11
 
if number in range_1 :
    print(number, 'is present in the range.')
else :
    print(number, 'is not present in the range.')
 
PREVIOUS NEXT
Tagged: #Check #number #range
ADD COMMENT
Topic
Name
6+5 =