Python Invoice Project
Python Invoice Project
SCHOOL
SESSION – 2024-25
PROJECT FILE
OF
COMPUTER SCIENCE
Page 1 of 12
ACKNOWLEDGEMENT
SAMRAT BHATTACHARJEE
XI (COMPUTER SCIENCE)
Page 2 of 12
CERTIFICATE
___________________ ___________________
SIGNATURE OF PRINCIPAL
_______________________
Page 3 of 12
INDEX
Page 4 of 12
PYTHON CODE
while True:
if choice == '0':
break
continue
Page 5 of 12
payment_method = payment_methods[int(choice)]
discount_rate = discounts[int(choice)]
items = []
total_price = 0
for i in range(num_items):
items.append((item_name, item_price))
total_price += item_price
gst_rate = 0.18
Page 6 of 12
final_price = price_after_discount + gst + carry_bag_cost
print("\nInvoice")
print("Items:")
print(f"Discount: ₹ {discount:.2f}")
print("=" * 30)
if continue_choice != 'yes':
break
Page 7 of 12
OUTPUT
Invoice
Items:
- books: ₹ 200.00
Page 8 of 12
- pens: ₹ 50.00
Discount: ₹ 17.50
==============================
Page 9 of 12
HARDWARE AND SOFTWARE
REQUIREMENTS
Page 10 of 12
BIBLIOGRAPHY
Page 11 of 12
THANK
YOU
Page 12 of 12