Percentage of a Variable in Python?


#1

How do I find a percentage of a variable in python?


#2

let's say i have a a item, which is 15$. Now, that is 100 percent of the price. so 100% of the price is:

15$ * 1 = 15$

so if we want to know what 10 percent is, we can simple do:

15$ * 0.1 = 1.5$

Does that make sense?