Can you generate Python code that prints the larger of two input numbers?
37, 22
# Define the two numbers
num1 = 37
num2 = 22

# Print the larger number
if num1 > num2:
    print(num1)
else:
    print(num2)