A [Narcissistic Number](https://en.wikipedia.org/wiki/Narcissistic_number) is a positive number which is the sum of its own digits, each raised to the power of the number of digits in a given base. In this Kata, we will restrict ourselves to decimal (base 10).

For example, take 153 (3 digits):
```
    1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153
```
and 1634 (4 digits):
```
    1^4 + 6^4 + 3^4 + 4^4 = 1 + 1296 + 81 + 256 = 1634
```

The Challenge:

Your code must return **true or false** depending upon whether the given number is a Narcissistic number in base 10.

Error checking for text strings or other invalid inputs is not required, only valid positive non-zero integers will be passed into the function.

Difficulty: introductory

Starter code:

def narcissistic( value ):
	

Solutions:
def narcissistic(value):
    return value == sum(int(x) ** len(str(value)) for x in str(value))

def narcissistic( value ):
    value = str(value)
    size = len(value)
    sum = 0
    for i in value:
        sum += int(i) ** size
    return sum == int(value)

def narcissistic(value):
    return bool(value==sum([int(a) ** len(str(value)) for a in str(value)]))


def narcissistic( value ):
    vstr = str(value)
    nvalue = sum(int(i)**len(vstr) for i in vstr)
    return nvalue == value


def narcissistic(value):
    string = str(value)
    length = len(string)
    sum_of_i = 0
    for i in string:
        sum_of_i += int(i) ** length
    if sum_of_i == value:
        result = True
    else:
        result = False
    return result

def narcissistic( value ):
    return value == sum(int(i) ** len(str(value)) for i in str(value))

narcissistic = lambda n: sum([int(d) ** len(str(n)) for d in list(str(n))]) == n

def narcissistic(value):
    num_str = str(value)
    length = len(num_str)
    return sum(int(a) ** length for a in num_str) == value


def narcissistic( value ):
    string_of_number = str(value)
    length_of_number = len (string_of_number)

    total = 0
    for i in range (0 , length_of_number):
        count  = int(string_of_number[i])**length_of_number
        total = count + total

    if total == value:
        return True
    else:
        return False