Generate a Python program to generate multiplication table of a given number.
5
def multiplication_table(num): 
    for i in range(1, 11): 
        print(num, 'x', i, '=', num*i) 
        
num = int(input("Enter a number: "))

multiplication_table(num)