input: Write a function to store and print the multiplication table of a given number. The function should iterate over numbers from 1 to 10 and print each multiplication result in the format '{num} x {i} = {result}', where 'num' is the given number, 'i' is the current iteration number (from 1 to 10), and 'result' is the product of 'num' and 'i'.
  def print_multiplication_table(num):
      for i in range(1, 11):
          print('{0} x {1} = {2}'.format(num, i, num*i))
  
  print_multiplication_table(5)
  
  assert print_multiplication_table(5) # Output should be a multiplication table for 5
  assert print_multiplication_table(7) # Output should be a multiplication table for 7
output: def print_multiplication_table(num):
      for i in range(1, 11):
          print('{0} x {1} = {2}'.format(num, i, num*i))