Formula Using Addition And Length In Python Code