Write a program to print multiplication tables from 1 to 10 based on user input. Implement multiplication_table(number), which accepts an integer and returns ten formatted strings for multiplying that number by 1 through 10. For input 7, the first line is 7 x 1 = 7; for input -3, the final line is -3 x 10 = -30.
number is an integer-10^6 <= number <= 10^6def multiplication_table(number):