From a5b0e42ed10870294a5154119364d89ae406e829 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Wed, 11 Feb 2026 16:49:40 +0530 Subject: [PATCH 1/7] First commit --- Notebook1.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Notebook1.ipynb b/Notebook1.ipynb index f080647..f1f3afd 100644 --- a/Notebook1.ipynb +++ b/Notebook1.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 4, "id": "73fb95c9", "metadata": {}, "outputs": [ @@ -10,13 +10,13 @@ "name": "stdout", "output_type": "stream", "text": [ - "7\n" + "110\n" ] } ], "source": [ - "x = 3\n", - "y = 4\n", + "x = int(input(\"Enter a number: \"))\n", + "y = int(input(\"Enter another number: \"))\n", "print(x + y)" ] }, @@ -31,7 +31,7 @@ ], "metadata": { "kernelspec": { - "display_name": "myenv", + "display_name": "base", "language": "python", "name": "python3" }, @@ -45,7 +45,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.13.7" + "version": "3.13.9" } }, "nbformat": 4, From 127e204c45941830bd771f247703e5fbc3833c68 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Thu, 12 Feb 2026 15:57:36 +0530 Subject: [PATCH 2/7] Changes --- Notebook1.ipynb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Notebook1.ipynb b/Notebook1.ipynb index f1f3afd..a08957c 100644 --- a/Notebook1.ipynb +++ b/Notebook1.ipynb @@ -26,7 +26,12 @@ "id": "ca9af74b", "metadata": {}, "outputs": [], - "source": [] + "source": [ + "list1 = [1, 2, 3, 3, 3, \"number\", \"number\", True]\n", + "print(list1)\n", + "print(set(list1))\n", + "print(list(set(list1)))" + ] } ], "metadata": { From d26464478243255200426d50c2b40f1d452b6395 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Tue, 10 Mar 2026 15:46:08 +0530 Subject: [PATCH 3/7] Name: Om Dhage, 3rd Year, Date: 09/03/2026 --- Pyt_Om_3rdYr_9Mar26.ipynb | 225 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 Pyt_Om_3rdYr_9Mar26.ipynb diff --git a/Pyt_Om_3rdYr_9Mar26.ipynb b/Pyt_Om_3rdYr_9Mar26.ipynb new file mode 100644 index 0000000..6bb2186 --- /dev/null +++ b/Pyt_Om_3rdYr_9Mar26.ipynb @@ -0,0 +1,225 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "id": "6996a3cf", + "metadata": {}, + "outputs": [ + { + "ename": "", + "evalue": "", + "output_type": "error", + "traceback": [ + "\u001b[1;31mThe kernel failed to start as the Python Environment 'anaconda3 (Python -1.-1.-1)' is no longer available. Consider selecting another kernel or refreshing the list of Python Environments." + ] + } + ], + "source": [ + "print('welcome to DS')" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "88c72525", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "You can Marry a girl\n" + ] + } + ], + "source": [ + "def GenderCheck():\n", + " while 1:\n", + " gender = input(\"Enter Your Gender: Male, Female, Other\").lower()\n", + " if gender == \"other\":\n", + " break\n", + " elif gender == \"female\":\n", + " print(\"You can Marry a boy\")\n", + " elif gender == \"male\":\n", + " print(\"You can Marry a girl\")\n", + " else:\n", + " print(\"You are beautiful\")\n", + "\n", + "\n", + "GenderCheck()\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "38143eec", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "You can Marry a girl\n", + "You can Marry a boy\n", + "You are beautiful guy\n", + "Your choice\n" + ] + } + ], + "source": [ + "def GenderCheck(gender):\n", + " if gender == \"other\":\n", + " print(\"Your choice\")\n", + " elif gender == \"female\":\n", + " print(\"You can Marry a boy\")\n", + " GenderCheck(input(\"Enter Your Gender: Male, Female, Other\").lower())\n", + " elif gender == \"male\":\n", + " print(\"You can Marry a girl\")\n", + " GenderCheck(input(\"Enter Your Gender: Male, Female, Other\").lower())\n", + " else:\n", + " print(\"You are beautiful guy\")\n", + " GenderCheck(input(\"Enter Your Gender: Male, Female, Other\").lower())\n", + "\n", + "\n", + "GenderCheck(input(\"Enter Your Gender: Male, Female, Other\").lower())\n", + "\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "640c59a3", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Samosa\n", + "Kachori\n", + "Idli\n", + "Dosa\n", + "Chinese\n", + "Biryani\n" + ] + } + ], + "source": [ + "lst = [\"Samosa\", \"Kachori\", \"Idli\", \"Dosa\", \"Chinese\", \"Biryani\"]\n", + "\n", + "for i in lst:\n", + " print(i)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "fa9204ec", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Iteam1\n", + "Iteam2\n", + "Iteam3\n", + "Iteam1\n", + "Iteam2\n", + "Iteam3\n" + ] + } + ], + "source": [ + "dic = {\"Iteam1\" : \"pen\", \"Iteam2\" : \"Pencil\", \"Iteam3\" : \"Paper\", \"Iteam1\" : \"Bag\"}\n", + "for i in dic:\n", + " print(f\"{i}\")\n", + "for j in dic:\n", + " print(f\"{j}\")" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "75a2c084", + "metadata": {}, + "outputs": [], + "source": [ + "# Search Iteam in list\n", + "\n", + "lst = [\"Samosa\", \"Kachori\", \"Idli\", \"Dosa\", \"Chinese\", \"Biryani\"]\n", + "\n", + "search = input(\"Enter the Iteam you want to search: \").lower()\n", + "\n", + "for i in lst:\n", + " if i.lower() == search:\n", + " print(f\"{search} is present in the list\")\n", + " break\n" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "0cba8a1d", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144]\n", + "[1, 8, 27, 64, 125, 216, 343, 512, 729, 1000, 1331, 1728]\n" + ] + } + ], + "source": [ + "# Append , extent in list\n", + "\n", + "list = []\n", + "for i in range(1, 13):\n", + " # item = i*i\n", + " list.append(pow(i, 2))\n", + "\n", + "print(list)\n", + "\n", + "list_comprehension = [pow(i, 3) for i in range(1, 13)]\n", + "print(list_comprehension)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "4d34b1ed", + "metadata": {}, + "outputs": [], + "source": [ + "# Use the sort(), remove(), pop() function in list of squares that you have created\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.14.3" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} From 3bee1f192100c4ef1d8c9bf1ba8fc385e26fbb26 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Tue, 10 Mar 2026 16:03:06 +0530 Subject: [PATCH 4/7] First --- Pyt_Om_3rdYr_10Mar26.ipynb | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Pyt_Om_3rdYr_10Mar26.ipynb diff --git a/Pyt_Om_3rdYr_10Mar26.ipynb b/Pyt_Om_3rdYr_10Mar26.ipynb new file mode 100644 index 0000000..5a131f5 --- /dev/null +++ b/Pyt_Om_3rdYr_10Mar26.ipynb @@ -0,0 +1,59 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "id": "3cac4056", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Om Dhage is a minor\n" + ] + } + ], + "source": [ + "user_name = input(\"Enter your name : \")\n", + "try:\n", + " user_age = int(input(\"Enter your age : \"))\n", + " if user_age < 18:\n", + " print(f\"{user_name} is a minor\")\n", + " else:\n", + " print(f\"{user_name} is adult\")\n", + "except ValueError:\n", + " print(\"Enter a valid age. Invalid entry\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "ec6abde4", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.14.3" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} From c3c59c0421674e62474e95bea94d00ed71300546 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Tue, 10 Mar 2026 16:17:56 +0530 Subject: [PATCH 5/7] Done --- Pyt_Om_3rdYr_10Mar26.ipynb | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/Pyt_Om_3rdYr_10Mar26.ipynb b/Pyt_Om_3rdYr_10Mar26.ipynb index 5a131f5..bced5b0 100644 --- a/Pyt_Om_3rdYr_10Mar26.ipynb +++ b/Pyt_Om_3rdYr_10Mar26.ipynb @@ -28,11 +28,32 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "id": "ec6abde4", "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The result of 10 divided by 2 is : 5.0\n" + ] + } + ], + "source": [ + "num1 = int(input(\"Enter first number : \"))\n", + "num2 = int(input(\"Enter second number : \"))\n", + "result = 0\n", + "\n", + "try:\n", + " if num2 == 0:\n", + " print(\"Cannot divide by zero\")\n", + " else:\n", + " result = num1/num2\n", + " print(f\"The result of {num1} divided by {num2} is : {result}\")\n", + "except ValueError:\n", + " print(\"Enter valid numbers. Invalid entry\")" + ] } ], "metadata": { From d9614724a28e4917250159bc04af66300ab72e24 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Wed, 11 Mar 2026 15:42:36 +0530 Subject: [PATCH 6/7] Commit --- Pyt_Om_3rdYr_10Mar26.ipynb | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Pyt_Om_3rdYr_10Mar26.ipynb b/Pyt_Om_3rdYr_10Mar26.ipynb index bced5b0..955050c 100644 --- a/Pyt_Om_3rdYr_10Mar26.ipynb +++ b/Pyt_Om_3rdYr_10Mar26.ipynb @@ -28,7 +28,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 16, "id": "ec6abde4", "metadata": {}, "outputs": [ @@ -36,7 +36,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "The result of 10 divided by 2 is : 5.0\n" + "Enter valid numbers. Invalid entry\n" ] } ], @@ -46,12 +46,9 @@ "result = 0\n", "\n", "try:\n", - " if num2 == 0:\n", - " print(\"Cannot divide by zero\")\n", - " else:\n", - " result = num1/num2\n", - " print(f\"The result of {num1} divided by {num2} is : {result}\")\n", - "except ValueError:\n", + " result = num1/num2\n", + " print(f\"The result of {num1} divided by {num2} is : {result}\")\n", + "except ZeroDivisionError:\n", " print(\"Enter valid numbers. Invalid entry\")" ] } From eb9e629b2bcd5009ac66801e1a7094824dc24c68 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Wed, 11 Mar 2026 16:42:46 +0530 Subject: [PATCH 7/7] Om Dhage Task done Date: 11/03/2026 --- Pyt_Om_3rdYr_11Mar26.ipynb | 131 +++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 Pyt_Om_3rdYr_11Mar26.ipynb diff --git a/Pyt_Om_3rdYr_11Mar26.ipynb b/Pyt_Om_3rdYr_11Mar26.ipynb new file mode 100644 index 0000000..3d27f5f --- /dev/null +++ b/Pyt_Om_3rdYr_11Mar26.ipynb @@ -0,0 +1,131 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "de0f9a1e", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "['a', 'b', 'c']\n", + "['b', 'c', 'd']\n" + ] + } + ], + "source": [ + "# Slice Function [Start:Stop:Step]\n", + "\n", + "list1 = ['a', 'b', 'c', 'd', 'e']\n", + "print(list1[0:3]) # ['a', 'b', 'c']\n", + "print(list1[1:4]) # ['b', 'c', 'd'] " + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "01b55857", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "List of scores: [78, 40, 92, 34, 67, 88, 53, 41, 76, 29, 64, 81, 39, 55, 72, 90, 47, 68, 33, 84, 0, -5, 100, 40, 75]\n", + "List containing the first 10 scores: [78, 40, 92, 34, 67, 88, 53, 41, 76, 29]\n", + "List containing the last 5 scores: [0, -5, 100, 40, 75]\n", + "A list containing every second score from the original list: [78, 92, 67, 53, 76, 64, 39, 72, 47, 33, 0, 100, 75]\n", + "78 is Passed\n", + "40 is Passed\n", + "92 is Passed\n", + "34 is Failed\n", + "67 is Passed\n", + "88 is Passed\n", + "53 is Passed\n", + "41 is Passed\n", + "76 is Passed\n", + "29 is Failed\n", + "64 is Passed\n", + "81 is Passed\n", + "39 is Failed\n", + "55 is Passed\n", + "72 is Passed\n", + "90 is Passed\n", + "47 is Passed\n", + "68 is Passed\n", + "33 is Failed\n", + "84 is Passed\n", + "0 is Failed\n", + "-5 is Failed\n", + "100 is Passed\n", + "40 is Passed\n", + "75 is Passed\n", + "List of passing scores: [78, 40, 92, 67, 88, 53, 41, 76, 64, 81, 55, 72, 90, 47, 68, 84, 100, 40, 75]\n", + "List of scores increased by 5 marks (bonus marks): [83, 45, 97, 39, 72, 93, 58, 46, 81, 34, 69, 86, 44, 60, 77, 95, 52, 73, 38, 89, 5, 0, 105, 45, 80]\n", + "List of scores greater than 75: [78, 92, 88, 76, 81, 90, 84, 100]\n", + "Number of students who passed: 19\n", + "Number of students who failed: 6\n" + ] + } + ], + "source": [ + "scores = [78, 40, 92, 34, 67, 88, 53, 41, 76, 29, 64, 81, 39, 55, 72, 90, 47, 68, 33, 84, 0, -5, 100, 40, 75]\n", + "\n", + "print(\"List of scores:\", scores)\n", + "print(\"List containing the first 10 scores:\", scores[0:10]) \n", + "print(\"List containing the last 5 scores:\", scores[-5:])\n", + "print(\"A list containing every second score from the original list:\", scores[0:25:2])\n", + "\n", + "for score in scores:\n", + " if score >= 40:\n", + " print(score, \"is Passed\")\n", + " else:\n", + " print(score, \"is Failed\")\n", + "\n", + "\n", + "# Use list comprehension to create:\n", + "# A list of all passing scores.\n", + "# A list of all scores increased by 5 marks (bonus marks).\n", + "# A list containing only the scores greater than 75.\n", + "#5. Display:\n", + "# The number of students who passed.\n", + "# The number of students who failed.\n", + "\n", + "# passing_scores = [x for x in scores if x >= 40]\n", + "passing_scores = [score for score in scores if score >= 40]\n", + "print(\"List of passing scores:\", passing_scores)\n", + "bonus_scores = [score + 5 for score in scores]\n", + "print(\"List of scores increased by 5 marks (bonus marks):\", bonus_scores)\n", + "high_scores = [score for score in scores if score > 75]\n", + "print(\"List of scores greater than 75:\", high_scores) \n", + "num_passed = len(passing_scores)\n", + "num_failed = len(scores) - num_passed\n", + "print(\"Number of students who passed:\", num_passed)\n", + "print(\"Number of students who failed:\", num_failed)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.14.3" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}