I have a list like
myList = [1,2,3,4,5,6]
I want to check:
lambda x : True if (x > 0 and x < 7) else False