answer 4 in python for 2 digits
answer 4 in python for 3 digits