From 8923635b7dd6ffe05fe332d722c2c1820b8b383c Mon Sep 17 00:00:00 2001 From: keerthi98438 Date: Fri, 31 Oct 2025 22:32:06 +0530 Subject: [PATCH] Create Variable exercise --- Variable exercise | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Variable exercise diff --git a/Variable exercise b/Variable exercise new file mode 100644 index 00000000..d43b9bce --- /dev/null +++ b/Variable exercise @@ -0,0 +1,8 @@ +item_name = input("Enter the item name: ") +quantity = int(input("Enter the quantity: ")) +price = float(input("Enter the price per item: ")) +total = quantity * price +print(f"Item Name : {item_name}") +print(f"Quantity : {quantity}") +print(f"Price : ₹{price:.2f}") +print(f"Total : ₹{total:.2f}")