If you don't mind as much about memory usage, you could use
if number in range(10, 24): # careful!
# This gives a range of 10 - 23.
# The end index (24) isn't included in it.
if number in xrange(10, 24):
# The xrange doesn't load the range list into memory all at once,
# but iterates over it one value at a time.
# This can save you a lot of memory for intensive/large-scale things.
# Again, the end index isn't included in the range.