input: Write a function to print the multiplication table of a given number. If the given number is positive, the function should print the multiplication table from 1 to 10. If the given number is negative, the function should print the multiplication table from -1 to -10. If the given number is zero, the function should print "Invalid input for multiplication table".
  
  def print_multiplication_table(num):
      if num > 0:
          for i in range(1, 11):
              print('{0} x {1} = {2}'.format(num, i, num*i))
      elif num < 0:
          for i in range(-1, -11, -1):
              print('{0} x {1} = {2}'.format(num, i, num*i))
      else:
          print("Invalid input for multiplication table")
  
  assert print_multiplication_table(5)
  assert print_multiplication_table(-5)
  assert print_multiplication_table(0)
output: def print_multiplication_table(num):
      if num > 0:
          for i in range(1, 11):
              print('{0} x {1} = {2}'.format(num, i, num*i))
      elif num < 0:
          for i in range(-1, -11, -1):
              print('{0} x {1} = {2}'.format(num, i, num*i))
      else:
          print("Invalid input for multiplication table")