hyprland-dotfiles/scripts/growthrate.py

9 lines
173 B
Python
Raw Normal View History

2023-02-06 15:11:51 +00:00
# input
num1 = float(input("Start: "))
num2 = float(input("End: "))
# printing the sum in float
gr = ((num2-num1)/num1)
percentage = "{:.2%}".format(gr)
print(percentage)