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 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad