From 224d3214a72ad6f2bdc24d123771c3cf5edb65c0 Mon Sep 17 00:00:00 2001 From: nawandharSakshi01 Date: Wed, 11 Feb 2026 20:06:52 +0530 Subject: [PATCH 1/3] hw 11/20 --- Notebook1.ipynb | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) diff --git a/Notebook1.ipynb b/Notebook1.ipynb index f080647..98dd113 100644 --- a/Notebook1.ipynb +++ b/Notebook1.ipynb @@ -22,16 +22,54 @@ }, { "cell_type": "code", - "execution_count": null, - "id": "ca9af74b", + "execution_count": 1, + "id": "48fdbd21", "metadata": {}, "outputs": [], - "source": [] + "source": [ + "name = \"Sakshi\"\n", + "hieght = 5.2\n", + "age = 20\n", + "Sakshi_List = [1,2,3,4,5,6,7,8,9,10]\n", + "Sakshi_Dict = {\n", + " \"Roll no\":21,\n", + " \"Branch\":\"CSE\",\n", + " \"Cgpa\": 8.23,\n", + " \"Section\":\"A\",\n", + " \"Above 18\": True\n", + "}" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "14e352ce", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Name: Sakshi\n", + "hieght: 5.2\n", + "age: 20\n", + "List: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n", + "Dict: {'Roll no': 21, 'Branch': 'CSE', 'Cgpa': 8.23, 'Section': 'A', 'Above 18': True}\n" + ] + } + ], + "source": [ + "print(\"Name: \",name)\n", + "print(\"hieght: \",hieght)\n", + "print(\"age: \",age)\n", + "print(\"List: \",Sakshi_List)\n", + "print(\"Dict: \",Sakshi_Dict)" + ] } ], "metadata": { "kernelspec": { - "display_name": "myenv", + "display_name": "base", "language": "python", "name": "python3" }, @@ -45,7 +83,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.13.7" + "version": "3.13.9" } }, "nbformat": 4, From dbb272f2884b4fdcd8dee22bee08157136155c34 Mon Sep 17 00:00:00 2001 From: nawandharSakshi01 Date: Thu, 12 Feb 2026 19:47:11 +0530 Subject: [PATCH 2/3] 12/02 --- Notebook1.ipynb | 11 +++++++++++ Task1.ipynb | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 Task1.ipynb diff --git a/Notebook1.ipynb b/Notebook1.ipynb index 98dd113..43acdb7 100644 --- a/Notebook1.ipynb +++ b/Notebook1.ipynb @@ -65,6 +65,17 @@ "print(\"List: \",Sakshi_List)\n", "print(\"Dict: \",Sakshi_Dict)" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "c4ddd91b", + "metadata": {}, + "outputs": [], + "source": [ + "code_list = [1,2,3,4,5,\"a\",\"b\", 6,7,8,True,1,2]\n", + "print(code_list)" + ] } ], "metadata": { diff --git a/Task1.ipynb b/Task1.ipynb new file mode 100644 index 0000000..50a4e91 --- /dev/null +++ b/Task1.ipynb @@ -0,0 +1,50 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 7, + "id": "2d77b295", + "metadata": {}, + "outputs": [], + "source": [ + "amount = float(input(\"enter amount\"))\n", + "\n", + "if amount >= 500:\n", + " dis0count = 6\n", + "elif amount >= 1000:\n", + " discount = 10\n", + "elif amount >= 5000:\n", + " discount = 15\n", + "\n", + "else:\n", + " print(\"Invalid amount\")\n", + "\n", + " print(f\"Total discount: {discount}\\n total amount after discount {amount-discount}\")\n", + " \n", + " \n", + "\n" + ] + } + ], + "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 +} From 8c466fe220359c7521b61e82823f0be41113ccd0 Mon Sep 17 00:00:00 2001 From: nawandharSakshi01 Date: Thu, 12 Feb 2026 19:56:52 +0530 Subject: [PATCH 3/3] 12/02 --- Task1.ipynb | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/Task1.ipynb b/Task1.ipynb index 50a4e91..f2ae1a6 100644 --- a/Task1.ipynb +++ b/Task1.ipynb @@ -10,19 +10,52 @@ "amount = float(input(\"enter amount\"))\n", "\n", "if amount >= 500:\n", - " dis0count = 6\n", + " discount = 6\n", "elif amount >= 1000:\n", " discount = 10\n", "elif amount >= 5000:\n", " discount = 15\n", "\n", "else:\n", - " print(\"Invalid amount\")\n", - "\n", - " print(f\"Total discount: {discount}\\n total amount after discount {amount-discount}\")\n", - " \n", - " \n", - "\n" + " print(\"Invalid amount\")" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "7745bd5d", + "metadata": {}, + "outputs": [], + "source": [ + "dis_amount = amount * discount\n", + "Final_amount = amount - dis_amount" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "0d44208c", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "------ BILL SUMMARY ------\n", + "Original Amount : 700.0\n", + "Discount Applied: 600 %\n", + "Discount Amount : 4200.0\n", + "Final Payable : -3500.0\n" + ] + } + ], + "source": [ + "print(\"\\n------ BILL SUMMARY ------\")\n", + "print(\"Original Amount :\", amount)\n", + "print(\"Discount Applied:\", discount * 100, \"%\")\n", + "print(\"Discount Amount :\", dis_amount)\n", + "print(\"Final Payable :\", Final_amount)" ] } ],