Question: how to calculate percentage python?
Answer: x=input("Enter a value: " )
y=input("Enter total value: ")
#calculating %
P=(x/y) *100.
print (P)