Printing leftmost zeros . Since ( a ^ b ) % k can have digits less then k . In that case we need to print zeros
for i in range ( k - numberOfDigits ( temp ) ) : NEW_LINE INDENT print ( "0" ) NEW_LINE DEDENT