Created
August 11, 2015 12:18
-
-
Save yuki-takei/e61245487d991112dea2 to your computer and use it in GitHub Desktop.
akari-first-python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# サンプル1 | |
x = 5; | |
print("xは" + str(x)); | |
# サンプル2 | |
name = "あかり"; | |
print("名前は" + name); | |
# サンプル3 | |
moji_x = "aaaa"; | |
print("moji_x は" + moji_x + "です"); | |
price = 350; | |
print("りんご" + str(1) + "個で" + str(price) + "円です"); | |
num = 500000; | |
total = price * num; | |
print("りんご" + str(num) + "個で" + str(total) + "円です"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment