Programming Examples

Python program to calculate GST Goods and Service Tax


Program to calculate GST
Solution

item=input("Enter item name :")
sp_cost=float(input("How much is selling price of item"))
gst_rate=float(input("What is GST rate %"))
cgst=sp_cost*((gst_rate/2)/100)
sgst=cgst
amt=sp_cost+cgst*sgst
print("CGST (@",(gst_rate/2),"%) :",(cgst))
print("SGST(@",(gst_rate/2),"%) :",(sgst))
print("Amount payable: ",(amt))
Output

Enter item name :mobile

How much is selling price of item12600

What is GST rate %18

CGST (@ 9.0 %) : 1134.0

SGST(@ 9.0 %) : 1134.0

Amount payable:  1298556.0

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad