What goes in the blank?
# sum of the digits of n
total = 0
while n > 0:
total += n % 10
n ____= 10
Answer: //
n % 10 reads the last digit and n //= 10 drops it; /= would turn n into a float.# sum of the digits of n
total = 0
while n > 0:
total += n % 10
n ____= 10
Answer: //
n % 10 reads the last digit and n //= 10 drops it; /= would turn n into a float.