Rewrite the javascript code with python code.
// This program prints the values 1 to 10
for (var i = 1; i <= 10; i++) {
  console.log("The number is " + i);
}
# This function prints the values 1 to 10
def print_numbers(): 
    for i in range(1,11): 
        print("The number is " + str(i)) 
          
print_numbers()