I would reccomend doing something along the lines of:
amount = float( input ("What is your amount?"))
percentage = float( input ("What is the percentage you need"))
value = amount * percentage / 100
print ("Your answer is", value")
float is the same as using the int command by allowing you to use your inputs in calculations. However, float allows the values to be decimals such as 3.2 or 0.24. Whilst the int option would just give you an error!
I use inputs rather than manually giving the answer in code as in a larger program the user wouldnt have to enter the code. They can just run the program and get the desired answer. No hassle!
This is very much like Mr Martin's solution I just thought this would help others (who don't know how to code) to use this easier.