Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using [3x8] matrix array in language selection #3

Open
onitonitonito opened this issue Mar 31, 2017 · 0 comments
Open

Using [3x8] matrix array in language selection #3

onitonitonito opened this issue Mar 31, 2017 · 0 comments

Comments

@onitonitonito
Copy link

@unins, regarding Add_v02.py, multi-language Calculator, you can use [ 3x 8 ] Matrix Array on language selection. for instance, setAsk_Lang[0][1] = "This is CACULATOR 1.1.2". (number is counting from '0')

You can see the whole thing with below.
`import time, sys, os
w = ("add","sub","mult","div","divn") # SET as TUPLE ( )

set_LANG = ( # Language SELECTION
"Wrong number\n",
"Language selected\n",
"언어가 설정 되었습니다\n",
"言語が設定されてい\n"
)

setAsk_LANG = ( [ # setAsk_LANG[0] = Header
"\n\tCALCULATOR 1.2.2 계산기입니다.",
"\n\tThis is CALCULATOR 1.1.2",
"\n\tCALCULATOR 1.2.2 計算機です."], [

"다음을 입력해 주세요",	"Enter Number",	"数字を入力してください" ],	[
"첫번째 숫자:",		"First number:", 	"最初の数字:"],	[
"두번째 숫자:", 	"Second number",	"第二の数字:"],	[

"계산법 (더하기=1,빼기=2,곱하기=3,나누기(소수)=4,나누기=5):",
"Calculation (add=1,sub=2,mult=3,div(float)=4,div=5):",
"計算 (プラス=1,マイナス=2,乗算=3,除算(小数)=4,除算=5):"],	[

"답은",	"Answer is", "答えは"],	[
"입니다", 	".....", 	"です"  ],	[
"잘못된 숫자입니다", "Wrong Number", "誤った数字です"
] )	# () --> Set as a TUPLE (Not Changeable)

n = 0
for i in range(8):
for k in range(3):
n += 1
print("[%d][%d]-->"%(i,k), setAsk_LANG[i][k])
print("\n")
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant