From a5b0e42ed10870294a5154119364d89ae406e829 Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Wed, 11 Feb 2026 16:49:40 +0530 Subject: [PATCH 1/3] 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/3] 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 aa5534194a932540ad26a2c22100e02f562be25e Mon Sep 17 00:00:00 2001 From: its1om1dhage Date: Thu, 12 Feb 2026 17:03:09 +0530 Subject: [PATCH 3/3] Date 12/02/2026 --- Notebook2.ipynb | 48 +++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/Notebook2.ipynb b/Notebook2.ipynb index 2343558..dc15b4a 100644 --- a/Notebook2.ipynb +++ b/Notebook2.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 4, + "execution_count": 8, "id": "1b3a412d", "metadata": {}, "outputs": [ @@ -10,28 +10,42 @@ "name": "stdout", "output_type": "stream", "text": [ - "Your Amount is Rs. 500\n", + "\n", + "----- BILL SUMMARY -----\n", + "Your Amount is Rs. 500.00\n", "Your Discount is 5%\n", - "Your Discount Amount is Rs. 25.0\n", - "Your Final Amount is Rs. 475.0\n" + "Your Discount Amount is Rs. 25.00\n", + "Your Final Amount is Rs. 475.00\n" ] } ], "source": [ - "amount = int(input(\"Enter Amount: \"))\n", - "if amount <= 1000:\n", - " discount = 5\n", - "elif amount <= 10000:\n", - " discount = 10\n", - "elif amount >= 20000:\n", - " discount = 15\n", - "else:\n", - " discount = 10\n", + "try:\n", + " amount = float(input(\"Enter Amount: \"))\n", "\n", - "print(f\"Your Amount is Rs. {amount}\")\n", - "print(f\"Your Discount is {discount}%\")\n", - "print(f\"Your Discount Amount is Rs. {amount*(discount/100)}\")\n", - "print(f\"Your Final Amount is Rs. {amount - (amount*(discount/100))}\")" + " if amount <= 0:\n", + " print(\"Amount must be greater than 0\")\n", + "\n", + " elif amount <= 1000:\n", + " discount = 5\n", + " elif amount <= 10000:\n", + " discount = 10\n", + " elif amount <= 20000:\n", + " discount = 15\n", + " else:\n", + " discount = 20\n", + "\n", + " discount_amount = amount * (discount / 100)\n", + " final_amount = amount - discount_amount\n", + "\n", + " print(\"\\n----- BILL SUMMARY -----\")\n", + " print(f\"Your Amount is Rs. {amount:.2f}\")\n", + " print(f\"Your Discount is {discount}%\")\n", + " print(f\"Your Discount Amount is Rs. {discount_amount:.2f}\")\n", + " print(f\"Your Final Amount is Rs. {final_amount:.2f}\")\n", + "\n", + "except ValueError:\n", + " print(\"Please enter a valid numeric amount\")\n" ] } ],