Check out example codes for "Write a function which tests wether a certain number is in the range (2,17)". It will help you in understanding the concepts better.

Code Example 1

def test_range(n):
    if n in range(2,17):
        print( " %s is in the range"%str(n))
    else :
        print("The number is outside the given range.")

Learn ReactJs, React Native from