From 036517fee4db3d43ca21c0e41b4de6916f48c08d Mon Sep 17 00:00:00 2001 From: Abhay Gomkale Date: Thu, 12 Feb 2026 15:14:34 +0530 Subject: [PATCH 1/4] Yup --- Notebook1.ipynb | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Notebook1.ipynb b/Notebook1.ipynb index f080647..c702277 100644 --- a/Notebook1.ipynb +++ b/Notebook1.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "id": "73fb95c9", "metadata": {}, "outputs": [ @@ -22,16 +22,26 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "ca9af74b", "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Abhay\n" + ] + } + ], + "source": [ + "print(\"Abhay\")" + ] } ], "metadata": { "kernelspec": { - "display_name": "myenv", + "display_name": "abpy", "language": "python", "name": "python3" }, @@ -45,7 +55,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.13.7" + "version": "3.10.9" } }, "nbformat": 4, From 0a090d0f8e86808baef88b25f61fb0a3a8b98e22 Mon Sep 17 00:00:00 2001 From: Abhay Gomkale Date: Thu, 12 Feb 2026 15:28:21 +0530 Subject: [PATCH 2/4] TaskDay1/12feb --- Notebook1.ipynb | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/Notebook1.ipynb b/Notebook1.ipynb index c702277..cc6ef83 100644 --- a/Notebook1.ipynb +++ b/Notebook1.ipynb @@ -37,6 +37,101 @@ "source": [ "print(\"Abhay\")" ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "2421653e", + "metadata": {}, + "outputs": [], + "source": [ + "name='Abhay Gomkale'\n", + "age=21\n", + "height=5.7" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "303e7be4", + "metadata": {}, + "outputs": [], + "source": [ + "Abhaymarks=[30,25,29,28,30,20,21,31,12,96]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "76d15d24", + "metadata": {}, + "outputs": [], + "source": [ + "Abhay={\n", + " \"Name\":\"Abhay\",\n", + " \"Class\":\"3rd Year\",\n", + " \"UID\":\"UGF23CS077\",\n", + " \"Subject\":\"Data Science\"\n", + "}" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "7e4bd855", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Name of the student is Abhay Gomkale\n", + "His age is 21\n", + "Height is 5.7\n" + ] + } + ], + "source": [ + "print(\"Name of the student is\",name)\n", + "print(\"His age is\",age)\n", + "print(\"Height is\",height)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "c2ebe70c", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "List of marks [30, 25, 29, 28, 30, 20, 21, 31, 12, 96]\n" + ] + } + ], + "source": [ + "print(\"List of marks\",Abhaymarks)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "e61e5f0e", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "His dictionary or his more info {'Name': 'Abhay', 'Class': '3rd Year', 'UID': 'UGF23CS077', 'Subject': 'Data Science'}\n" + ] + } + ], + "source": [ + "print(\"His dictionary or his more info \",Abhay)" + ] } ], "metadata": { From b5f36a5e3ea0ce0c6913171171521b537ffefaf8 Mon Sep 17 00:00:00 2001 From: Abhay Gomkale Date: Thu, 12 Feb 2026 20:56:16 +0530 Subject: [PATCH 3/4] TaskDiscount12/02/2026 --- Task1.ipynb | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Task1.ipynb diff --git a/Task1.ipynb b/Task1.ipynb new file mode 100644 index 0000000..dab6ef7 --- /dev/null +++ b/Task1.ipynb @@ -0,0 +1,60 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "1ab2f993", + "metadata": {}, + "source": [ + "Discount and Payable amount" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "d56f3fd1", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The payable amount is 8450.4\n" + ] + } + ], + "source": [ + "Price=float(input(\"Enter the amount of object.\"))\n", + "if Price >= 5005:\n", + " disc=Price*0.16\n", + "elif Price >=1000:\n", + " disc=Price*0.10\n", + "elif Price >=500:\n", + " disc=Price*0.06\n", + "total=Price-disc\n", + " \n", + "print(\"The payable amount is\",total)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "abpy", + "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.10.9" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} From 3eefb1e49628c8cb81079a297ef8bacc81dd1cdf Mon Sep 17 00:00:00 2001 From: Abhay Gomkale Date: Mon, 9 Mar 2026 20:34:38 +0530 Subject: [PATCH 4/4] 09/03/2026 Python Fundamentals TASK 2 --- March9Abhay.ipynb | 406 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 406 insertions(+) create mode 100644 March9Abhay.ipynb diff --git a/March9Abhay.ipynb b/March9Abhay.ipynb new file mode 100644 index 0000000..bdcd573 --- /dev/null +++ b/March9Abhay.ipynb @@ -0,0 +1,406 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "256fa51d", + "metadata": {}, + "source": [ + "Python Fundamentals 09/03/2026 Session of Elixir Training " + ] + }, + { + "cell_type": "markdown", + "id": "62441ea6", + "metadata": {}, + "source": [ + "While Loops " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "54ffa3b3", + "metadata": {}, + "outputs": [], + "source": [ + "def operationrepeat(Choice):\n", + " while(Choice!=9):\n", + " Choice=int(input(\"Enter Again\"))\n", + " \n", + " if(Choice==1):\n", + " print(\"Clicked 1 not 9\")\n", + " elif(Choice==2):\n", + " print(\"Clicke 2 not 9\")\n", + " elif(Choice==3):\n", + " print(3*3)\n", + " elif(Choice==4):\n", + " print(\"Clicke cwf not 9\")" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "dbdb0228", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Clicked 1 not 9\n", + "Clicke 2 not 9\n", + "9\n", + "Clicke cwf not 9\n" + ] + } + ], + "source": [ + "operationrepeat(0)" + ] + }, + { + "cell_type": "markdown", + "id": "90d58269", + "metadata": {}, + "source": [ + "Write a python program that uses the \"For Loop\" for iterating through a list of elements and print all elements present in the list" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "d0aab3ee", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1\n", + "3\n", + "d\n", + "5\n", + "3\n", + "5\n", + "h\n" + ] + } + ], + "source": [ + "list1=[1,3,'d',5,3,5,'h']\n", + "\n", + "for i in range(len(list1)):\n", + " print(list1[i])" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "31b2860b", + "metadata": {}, + "outputs": [], + "source": [ + "def whileuse(l):\n", + " i=0\n", + " list2=[]\n", + " while len(list2)!=l:\n", + " list2[i]=int(input())\n", + " \n", + "l=int(input())\n", + "\n", + "print(whileuse(l))\n", + " \n", + " \n", + " " + ] + }, + { + "cell_type": "markdown", + "id": "8ba8d0c6", + "metadata": {}, + "source": [ + "Make A Dictionary" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "fa9e6c1a", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{'Name': 'AbhayKGomkale', 'Designation': 'Student', 'Address': 'Khaperkheda'}\n" + ] + } + ], + "source": [ + "dict1={'Name':\"AbhayKGomkale\",\"Designation\":\"Student\",\"Address\":\"Khaperkheda\"}\n", + "\n", + "print(dict1)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "b8f294cc", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1\n", + "3\n", + "5\n", + "7\n", + "9\n", + "11\n", + "13\n", + "15\n", + "17\n", + "19\n", + "21\n", + "23\n", + "25\n", + "27\n", + "29\n", + "31\n", + "33\n", + "35\n", + "37\n", + "39\n", + "41\n", + "43\n", + "45\n", + "47\n", + "49\n" + ] + } + ], + "source": [ + "for i in range(50):\n", + " if(i%2==0):\n", + " continue\n", + " else:\n", + " print(i)" + ] + }, + { + "cell_type": "markdown", + "id": "055a0db2", + "metadata": {}, + "source": [ + "Functions Used in List" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "9136d0c2", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0, 1, 2, 3, 4]\n" + ] + } + ], + "source": [ + "lis1=[]\n", + "\n", + "for i in range(5):\n", + " lis1.append(i)\n", + " \n", + "print(lis1)" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "773ddbf6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0, 8, 8, 8, 1, 2, 3, 4]\n" + ] + } + ], + "source": [ + "lis1.insert(1,8)\n", + "\n", + "print(lis1)" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "id": "49ffb2df", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0, 8, 8, 8, 1, 2, 3, 4, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121]\n" + ] + } + ], + "source": [ + "lis1.extend(lis2)\n", + "\n", + "print(lis1)" + ] + }, + { + "cell_type": "markdown", + "id": "f2f9f3ff", + "metadata": {}, + "source": [ + "populate the listr with the squares of 1 to 12" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "id": "bd46dcf6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144]\n" + ] + } + ], + "source": [ + "list_of_squares=[]\n", + "for i in range(1,13):\n", + " list_of_squares.append(i**2)\n", + " \n", + "print(list_of_squares)" + ] + }, + { + "cell_type": "markdown", + "id": "2c3976d6", + "metadata": {}, + "source": [ + "List Comprehension" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "id": "1055ce76", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144]\n" + ] + } + ], + "source": [ + "list_of_sqrs=[x*x for x in range(1,13)] \n", + "print(list_of_sqrs)" + ] + }, + { + "cell_type": "markdown", + "id": "9735ee62", + "metadata": {}, + "source": [ + "Remove and Pop" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "id": "c1285a01", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0, 8, 8, 1, 4, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121]\n" + ] + } + ], + "source": [ + "lis1.remove(8)\n", + "print(lis1)" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "id": "c25d7b6f", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0, 8, 8, 1, 4, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]\n" + ] + } + ], + "source": [ + "lis1.pop()\n", + "print(lis1)" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "id": "56899830", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[0, 1, 1, 4, 4, 8, 8, 9, 16, 25, 36, 49, 64, 81, 100]\n" + ] + } + ], + "source": [ + "lis1.sort()\n", + "print(lis1)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "base", + "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.13.9" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}