Try the below function, which will solve it:
def check_is_narcis_number(your_number):
your_numbers = str(your_number)
power = len(your_numbers)
your_sum = 0
for number in your_numbers:
your_sum += pow(int(number), power)
if your_sum == your_number:
return True
return False