Create a script in Python to convert a given integer to its binary equivalent.
19
def dec_to_bin(num): 
    if num > 1: 
        dec_to_bin(num // 2) 
    print(num % 2,end = '')

num = 19
dec_to_bin(num)