I am new to writing algorithms for competitions. I got this question:
I have written this so far:
import math def f(n): n1 = 0 for row in str(n):