Simple Percent Calculator in Python
What is a percent calculator?
A percent calculator is used for tracking progress or saving money.
message = "Enter total value: "
total_value = int(input(message))
message = "Enter percentage: "
percentage = int(input(message))
print(f"What is {percentage}% of {total_value}?")
one_percent = total_value / 100
result = int(one_percent * percentage)
print(f"Result is {result}")