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

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz