Skip to content

Instantly share code, notes, and snippets.

@aoimomiji
Created January 15, 2019 14:11
Show Gist options
  • Save aoimomiji/861785905025544252f2e87105f97403 to your computer and use it in GitHub Desktop.
Save aoimomiji/861785905025544252f2e87105f97403 to your computer and use it in GitHub Desktop.
Attouteki.ipynb
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "for i in range(1,31):\n if i % 3==0 and i % 5==0:\n print('圧倒的オムライス')\n elif i % 3==0:\n print('圧倒的')\n elif i % 5==0:\n print('オムライス')\n else:\n print(i)",
"execution_count": 32,
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": "1\n2\n圧倒的\n4\nオムライス\n圧倒的\n7\n8\n圧倒的\nオムライス\n11\n圧倒的\n13\n14\n圧倒的オムライス\n16\n17\n圧倒的\n19\nオムライス\n圧倒的\n22\n23\n圧倒的\nオムライス\n26\n圧倒的\n28\n29\n圧倒的オムライス\n"
}
]
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"name": "python",
"version": "3.6.5",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"gist": {
"id": "",
"data": {
"description": "Attouteki.ipynb",
"public": true
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment