Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
363 B
1
Indexable
Never
def calculate_percentages(value):
    percentage_20 = value * 0.2
    percentage_30 = value * 0.3
    percentage_50 = value * 0.5

    return percentage_20, percentage_30, percentage_50

# Example usage
figure = 100
percentages = calculate_percentages(figure)
print("20%:", percentages[0])
print("30%:", percentages[1])
print("50%:", percentages[2])