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

日本語の変数名 #6

Open
taisukef opened this issue Dec 15, 2024 · 0 comments
Open

日本語の変数名 #6

taisukef opened this issue Dec 15, 2024 · 0 comments

Comments

@taisukef
Copy link
Member

height = 176
weight = 64
height_m = height / 100
bmi = weight / (height_m * height_m)
print "BMIは", bmi

を、下記のように日本語変数名を使って書けるといい

身長 = 176
体重 = 64
身長m = 身長 / 100
bmi = 体重 / (身長m * 身長m)

どう定義するか?
全角アルファベット、全角数字の扱いをどうするか?

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