<prompt> Write a function to display the multiplication table of a given number from 1 to 10.  <response>: Heres a Python function that displays the multiplication table of a given number from 1 to 10: pythondef multiplication_tablenum: for i in range1,11: result num i printfnum x i result Examplemultiplication_table6This function takes in a number as an input parameter and uses a for loop to iterate through the range of numbers from 1 to 10. For each iteration, the function calculates the result by multiplying the input number by the current value of i. The result is then printed out in the format of a multiplication table. In the example provided, the function is called with the input value of 6 and the function displays the multiplication table of 6 from 1 to 10. 