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.

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

Popular posts from this blog

C언어) C언어를 이용하여 평균 구하기~!!

파이썬) 파이썬으로 사칙연산 계산기 만들기~!!

C언어) C언어를 이용하여 나의 BMI 측정하기(저체중, 표준체중, 과체중) 여러분도 직접 비만도를 측정해보세요~!!