python) implementing a simple multiplication table~!!
Hello~~!
I'm lulu :-)
Today, I'm going to show you how to implement a multiplication table in a real simple way.
I made multiplication in two ways. First is to use a list and the other one is to use a "range" function. There are many different ways to implement a multiplication table using python or java etc..
In no time, I'll bring some exciting games, and different methods using different languages.
I'm lulu :-)
Today, I'm going to show you how to implement a multiplication table in a real simple way.
A = [1,2,3,4,5,6,7,8,9]
B = [2,3,4,5,6,7,8,9]
for a in B:
for b in A:
print(a, "*", b, "=", a*b)
for a in range(2,10):
for b in range(1,10):
print(a,"*", b,"=", a*b)
I made multiplication in two ways. First is to use a list and the other one is to use a "range" function. There are many different ways to implement a multiplication table using python or java etc..
In no time, I'll bring some exciting games, and different methods using different languages.
If you have any questions or any opinions, tell me you'll be welcomed :-)
Thank you :-)
Comments
Post a Comment