I'm trying to find the percentage of a given number, for example, if I wanted to know what is 80% of 100. The answer would be 80.
Here's what I tried so far:
percentage = 80
x = 100
y = percentage * x
decimal = percentage / 100
final = decimal * x
print(final)
Output: 80.0
What would be the better alternatives?