IDNLearn.com is the place where your questions are met with thoughtful and precise answers. Ask anything and receive well-informed answers from our community of experienced professionals.

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).

Sagot :

The programming is done for the multiplication table that takes integer numbers and prints the table given in the picture.

What is computer programming?

The words "computer coding" and "computer programming" are sometimes used simultaneously. They do, however, differ in several ways.

Write a function multiplication tables which takes in as input an integer num, and prints out lists with the first 10 multiples of all the numbers from 1 to num(inclusive).

The programming is given below.

def multiplication_tables(num):

   for i in range(1, num+1):

       lst = []

       for j in range(1, 11):

           lst.append(i*j)

       print(lst)

# Testing the function here. ignore/remove the code below if not required

if _name_ == '__main__':

   n = int(input())

   multiplication_tables

Then the result will be given in the picture.

More about the computer programming link is given below.

https://brainly.com/question/14618533

#SPJ1

View image Jainveenamrata