Skip to content

Instantly share code, notes, and snippets.

@yuki-takei
Created August 11, 2015 12:18
Show Gist options
  • Save yuki-takei/e61245487d991112dea2 to your computer and use it in GitHub Desktop.
Save yuki-takei/e61245487d991112dea2 to your computer and use it in GitHub Desktop.
akari-first-python
# サンプル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