def mob_attack(minimum_roll, mob_size):
table = {
        range(1, 5) : 1,
        range(6, 12) : 2,
        range(13, 14) : 3,
        range(15, 16) : 4,
        range(17, 18) : 5
        }
for key in table:
    if minimum_roll in key:
        return int(mob_size/table[key])
The goal for this code is to return the quotient of the mob_size, using the value as the divisor of the key that matches with minimum_roll. The problem I'm experiencing is that it returns None for the max number in the Range keys, i.e 5, 12, 14, 16, and 18. How do I fix this so it returns the value that it should?
