hyprland-dotfiles/scripts/growthrate.py
2023-02-06 16:11:51 +01:00

9 lines
173 B
Python

# input
num1 = float(input("Start: "))
num2 = float(input("End: "))
# printing the sum in float
gr = ((num2-num1)/num1)
percentage = "{:.2%}".format(gr)
print(percentage)