Python program to check if a number is an armstrong number