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

第171問の問題とその解答例を記入した。Colab を使用して作成されました #304

Open
wants to merge 1 commit into
base: 2024
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Prog2_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/t-tokiwa/Prog2_11th/blob/2024/Prog2_11.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
"<a href=\"https://colab.research.google.com/github/hayashisoma/Prog2_11th/blob/2024/Prog2_11.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
Expand Down Expand Up @@ -4035,7 +4035,9 @@
"第171問\n",
"次の問題に答えなさい\n",
"\n",
"(ここから以降に自作問題を書いてください)"
"(ここから以降に自作問題を書いてください)\n",
"\n",
"5行4列の二次元配列aを生成しなさい。ただし、ただし要素は1~99の整数型乱数とする。"
]
},
{
Expand All @@ -4044,7 +4046,10 @@
"id": "IE3zz6fmCuL4"
},
"source": [
"# ここに自作問題の回答(pythonプログラム)を書いてください"
"# ここに自作問題の回答(pythonプログラム)を書いてください\n",
"import numpy as np\n",
"a=np.random.randint(0,99,(6,5))\n",
"print(a)"
],
"execution_count": null,
"outputs": []
Expand Down