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
137 changes: 73 additions & 64 deletions Tasks.ipynb
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "6LkPygla_OXh"
},
"source": [
"# **Task 1**\n",
"\n",
Expand All @@ -29,57 +18,57 @@
"5. Print the result.\n",
"\n",
"(Print the shape of matrix always with the matrix)\n"
],
"metadata": {
"id": "6LkPygla_OXh"
}
]
},
{
"cell_type": "code",
"source": [
"# Import Numpy"
],
"execution_count": null,
"metadata": {
"id": "Z8iSVv-r_WkT"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"#test changes made by Me"
]
},
{
"cell_type": "code",
"source": [
"# Define the 4 matrices as A,B,C,D"
],
"execution_count": null,
"metadata": {
"id": "r1pVl7LbA1_I"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"# Define the 4 matrices as A,B,C,D"
]
},
{
"cell_type": "code",
"source": [
"# Print the 4 matrices"
],
"execution_count": null,
"metadata": {
"id": "uJHj_CbhA83b"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"# Print the 4 matrices"
]
},
{
"cell_type": "code",
"source": [
"# Find the Dot Product of matrices\n"
],
"execution_count": null,
"metadata": {
"id": "MDcD7tOWBMzG"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"# Find the Dot Product of matrices\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "Rv1D09dyB0eP"
},
"source": [
"# ValueError: shapes (2,2) and (3,3) not aligned: 2 (dim 1) != 3 (dim 0)\n",
"\n",
Expand All @@ -89,36 +78,36 @@
"Else print \"Dimension Error!!\"\n",
"\n",
"\n"
],
"metadata": {
"id": "Rv1D09dyB0eP"
}
]
},
{
"cell_type": "code",
"source": [
"def is_compatible(A, B):\n",
" pass"
],
"execution_count": null,
"metadata": {
"id": "RmS0xS8tCjNC"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"def is_compatible(A, B):\n",
" pass"
]
},
{
"cell_type": "code",
"source": [
"# Find Dot product only if the matrices are compatible"
],
"execution_count": null,
"metadata": {
"id": "ds0XYSZ6E9nl"
},
"execution_count": null,
"outputs": []
"outputs": [],
"source": [
"# Find Dot product only if the matrices are compatible"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "SR_JeHeEdWOX"
},
"source": [
"# **Task 2**\n",
"\n",
Expand Down Expand Up @@ -147,22 +136,42 @@
"At the end of the game, the function should print the final score.\n",
"\n",
"Your task is to implement this function in Python using the given rules."
],
"metadata": {
"id": "SR_JeHeEdWOX"
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "0fxnUDma7aPx"
},
"outputs": [],
"source": [
"def up_down(rounds):\n",
" pass"
],
"metadata": {
"id": "0fxnUDma7aPx"
]
}
],
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"execution_count": null,
"outputs": []
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
}
]
}
},
"nbformat": 4,
"nbformat_minor": 0
}