Skip to content
Closed

Test #19

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
152 changes: 29 additions & 123 deletions 1-Python Basics/1.0-basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Krish\n",
"Naik\n"
"Rajeev\n",
"Awasthi\n"
]
}
],
"source": [
"## Basic Syntax Rules In Python\n",
"## Case sensitivity- Python is case sensitive\n",
"\n",
"name=\"Krish\"\n",
"Name=\"Naik\"\n",
"name=\"Rajeev\"\n",
"Name=\"Awasthi\"\n",
"\n",
"print(name)\n",
"print(Name)\n"
Expand All @@ -58,18 +58,9 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"32\n",
"32\n"
]
}
],
"outputs": [],
"source": [
"## Indentation\n",
"## Python uses indentation to define blocks of code. Consistent use of spaces (commonly 4) or a tab is required.\n",
Expand All @@ -84,35 +75,19 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello World\n"
]
}
],
"outputs": [],
"source": [
"## This is a single line comment\n",
"print(\"Hello World\")"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"43\n"
]
}
],
"outputs": [],
"source": [
"## Line Continuation\n",
"##Use a backslash (\\) to continue a statement to the next line\n",
Expand All @@ -125,17 +100,9 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"15\n"
]
}
],
"outputs": [],
"source": [
"## Multiple Statements on a single line\n",
"x=5;y=10;z=x+y\n",
Expand All @@ -144,32 +111,21 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"##Understand Semnatics In Python\n",
"# variable assignment\n",
"age=32 ##age is an integer\n",
"name=\"Krish\" ##name is a string"
"name=\"Rajeev\" ##name is a string"
]
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"int"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"\n",
"\n",
Expand All @@ -178,59 +134,31 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"str"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"type(name)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'int'>\n",
"<class 'str'>\n"
]
}
],
"outputs": [],
"source": [
"## Type Inference\n",
"variable=10\n",
"print(type(variable))\n",
"variable=\"Krish\"\n",
"variable=\"Rajeev\"\n",
"print(type(variable))"
]
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"32\n"
]
}
],
"outputs": [],
"source": [
"age=32\n",
"if age>30:\n",
Expand All @@ -239,47 +167,25 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'b' is not defined",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[15], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m a\u001b[38;5;241m=\u001b[39m\u001b[43mb\u001b[49m\n",
"\u001b[1;31mNameError\u001b[0m: name 'b' is not defined"
]
}
],
"outputs": [],
"source": [
"## Name Error\n",
"a=b"
]
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Correct Indentation\n",
"This will print\n",
"Outside the if block\n"
]
}
],
"outputs": [],
"source": [
"## Code exmaples of indentation\n",
"if True:\n",
" print(\"Correct Indentation\")\n",
" if False:\n",
" print(\"This ont print\")\n",
" print(\"This won't print\")\n",
" print(\"This will print\")\n",
"print(\"Outside the if block\")"
]
Expand Down Expand Up @@ -314,7 +220,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.13.5"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions 1-Python Basics/1.1-Variables.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "venv",
"language": "python",
"name": "python3"
},
Expand All @@ -409,7 +409,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.13.5"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion 1-Python Basics/1.3-operators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.13.5"
}
},
"nbformat": 4,
Expand Down
8 changes: 8 additions & 0 deletions Complete-Python-Bootcamp1.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}
Empty file added venv/.nonadmin
Empty file.
Binary file added venv/DLLs/_asyncio.pyd
Binary file not shown.
Binary file added venv/DLLs/_bz2.pyd
Binary file not shown.
Binary file added venv/DLLs/_ctypes.pyd
Binary file not shown.
Binary file added venv/DLLs/_ctypes_test.pyd
Binary file not shown.
Binary file added venv/DLLs/_decimal.pyd
Binary file not shown.
Binary file added venv/DLLs/_elementtree.pyd
Binary file not shown.
Binary file added venv/DLLs/_hashlib.pyd
Binary file not shown.
Binary file added venv/DLLs/_lzma.pyd
Binary file not shown.
Binary file added venv/DLLs/_multiprocessing.pyd
Binary file not shown.
Binary file added venv/DLLs/_overlapped.pyd
Binary file not shown.
Binary file added venv/DLLs/_queue.pyd
Binary file not shown.
Binary file added venv/DLLs/_socket.pyd
Binary file not shown.
Binary file added venv/DLLs/_sqlite3.pyd
Binary file not shown.
Binary file added venv/DLLs/_ssl.pyd
Binary file not shown.
Binary file added venv/DLLs/_testbuffer.pyd
Binary file not shown.
Binary file added venv/DLLs/_testcapi.pyd
Binary file not shown.
Binary file added venv/DLLs/_testclinic.pyd
Binary file not shown.
Binary file added venv/DLLs/_testclinic_limited.pyd
Binary file not shown.
Binary file added venv/DLLs/_testconsole.pyd
Binary file not shown.
Binary file added venv/DLLs/_testimportmultiple.pyd
Binary file not shown.
Binary file added venv/DLLs/_testinternalcapi.pyd
Binary file not shown.
Binary file added venv/DLLs/_testlimitedcapi.pyd
Binary file not shown.
Binary file added venv/DLLs/_testmultiphase.pyd
Binary file not shown.
Binary file added venv/DLLs/_testsinglephase.pyd
Binary file not shown.
Binary file added venv/DLLs/_tkinter.pyd
Binary file not shown.
Binary file added venv/DLLs/_uuid.pyd
Binary file not shown.
Binary file added venv/DLLs/_wmi.pyd
Binary file not shown.
Binary file added venv/DLLs/_zoneinfo.pyd
Binary file not shown.
Binary file added venv/DLLs/py.ico
Binary file not shown.
Binary file added venv/DLLs/pyc.ico
Binary file not shown.
Binary file added venv/DLLs/pyexpat.pyd
Binary file not shown.
Binary file added venv/DLLs/select.pyd
Binary file not shown.
Binary file added venv/DLLs/unicodedata.pyd
Binary file not shown.
Binary file added venv/DLLs/winsound.pyd
Binary file not shown.
Binary file added venv/DLLs/xxlimited.pyd
Binary file not shown.
Binary file added venv/DLLs/xxlimited_35.pyd
Binary file not shown.
Loading