I am a beginner in Python and cannot understand the below code. Somebody please explain the execution flow.
The Question is to enter a number 'N' and calculate N+NN+NNN.
a = int(input("Input an integer : "))
n1 = int( "%s" % a )
n2 = int( "%s%s" % (a,a) )
n3 = int( "%s%s%s" % (a,a,a) )
print (n1+n2+n3)