Skip to content
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
117 changes: 110 additions & 7 deletions make a calculater.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,91 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "c6f8694a",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"15"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = input(\"Enter a number:\")\n",
"b = input(\"Enter another number: \")\n",
"a = int(a)\n",
"b = int(b)\n",
"\n",
"a+b "
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "786fed31",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"5"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a-b"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "9e414ccc",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"50"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"## TODO : Place your code here"
"a*b"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "c26d3f12",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2.0"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a/b"
]
},
{
Expand All @@ -45,12 +124,36 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "d040ccd8",
"execution_count": 10,
"id": "db811bf2",
"metadata": {},
"outputs": [],
"source": [
"## TODO : Place your code here"
"import random"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "d040ccd8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"128"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = random.randint(1, 100)\n",
"b = random.randint(1, 100) \n",
"\n",
"a+b"
]
}
],
Expand All @@ -70,7 +173,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.0"
"version": "3.13.3"
}
},
"nbformat": 4,
Expand Down