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}")