Sum of digits of a given number

⛶n = 209.882 t = str(n) #converting integer into string so we can loop through it. if t.startswith('-'): #if it is a negative number t = t[1:] #slicing it so that - is not considered...
0 Read More