python multiplication tables

Different ways of doing table multiplication in python :

Version-1 
Good -
1. It does the multiplication of 2 until 10.

Bad -
1. It only can multiply 2 until 10. We cannot enter the number from keyboard.
2. And you have to write 10 print lines.

Version - 2
Good-
1. You can choose your own first number.

Bad-
1. It still only can multiply until 10 and you still have to write 10 lines of print.

Version-3
Good-
1.The new good thing about this is the for loop, now we don't have to write print 10 times.

Bad-
1. You can only multiply 10 times

Version-4
Good- 
1.We can choose both numbers now and multiply until how much we want.

Comments

Popular posts from this blog

Maximum and minimum of three numbers