Create a Python script to print out all the numbers in a given range that are divisible by a given number.
lower = 1
upper = 50
divisible = 5
def printDivisible(lower, upper, divisible):
    for i in range(lower, upper + 1):
        if i % divisible == 0:
            print(i)

printDivisible(lower, upper, divisible)