Create a block of code for a Python program to generate a multiplication table for a given number.
num = 6
# Create a multiplication table for a given number
num = 6

# Loop to generate the table
for i in range(1, 11):
  print(f'{num} x {i} = {num * i}')