Hyprland-dotfiles/scripts/growthrate.py

9 lines
173 B
Python
Raw Normal View History

2023-02-06 10:11:51 -05: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)