Python logic for kids :)

Asha Ganesh
3 min readJun 8, 2020

--

learn for loops and while loops in python for multiplication table logic with static and dynamic user inputs

Formatting multiplication table is an important thing while displaying multiplication tables .we will see some programmatic examples here

Exercise : 1

Print Multiplication Table 5 table up to 3times

Multiplication Table 5 with static input

‘end’ takes place a good role for printing

Exercise : 2

Print Multiplication table 15 up to 6 times using for loop using ‘ range’ function

for loop with range function with static user input

Lets Take User inputs

  • Multiplication table number
  • User can choose how many times the table can print .

Exercise : 3

Dynamic user input — User can give any Multiplication table number as input this program can print table accordingly

User Dynamic input for choosing multiplication table number

Exercise : 4

Here user can give both table number as well as how many times the table need to print

Multiplication tables with User inputs

Exercise : 5

Using nested for loops — 2D multiplication table

2D multiplication table

want to take see table value in front just use

Nested for loops practice exercises using python.

other links:

“If you have knowledge ,let others light their candles in it”

Happy to share :) …

--

--