defgetEvolutionratemessage(before,after):try:evolution=(after-before)/before*100exceptZeroDivisionError:return"can't divide by zero "ifevolution>0:statement=f"A Positive evolution of {round(evolution)}%"elifevolution<0:statement=f"A Negative evolution of {round(evolution)}%"else:statement=f"No evolution"returnstatementprint(getEvolutionratemessage(95.12,66.84))
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Daily Challenge #61 - Evolution Rate
For further actions, you may consider blocking this person and/or reporting abuse