Question: Write a function multiplication_tables which takes in as input an integer num , and prints out lists with the the first 10 multiples of all

 Write a function multiplication_tables which takes in as input an integer

Write a function multiplication_tables which takes in as input an integer num , and prints out lists with the the first 10 multiples of all the numbers from 1 to num (inclusive). Function Name: multiplication_tables Parameter: num - A positive integer up to which we have to print the first 10 multiples. Description: For each number from 1 to num , the function should print out a list containing the first 10 multiples of the number. Sample Input: 5 Sample Output: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] [3, 6, 9, 12, 15, 18, 21, 24, 27, 30] [4, 8, 12, 16, 20, 24, 28, 32, 36, 40] [5, 10, 15, 20, 25, 30, 35, 40, 45, 50]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!