class Solution:
    def isArmstrong(self, N: int) -> bool:
        num_str=str(N)
        len_num = len(num_str)
        res = 0
        for char in num_str:
            res += int(char)**len_num
        return (res == N)
        

6cc06a42570f5ed9a1ae7bc5b272de977c541b76
<mask token>

class Solution:
    <mask token>

class Solution:

    def isArmstrong(self, N: int) ->bool:
        num_str = str(N)
        len_num = len(num_str)
        res = 0
        for char in num_str:
            res += int(char) ** len_num
        return res == N

class Solution:
    def isArmstrong(self, N: int) -> bool:
        num_str=str(N)
        len_num = len(num_str)
        res = 0
        for char in num_str:
            res += int(char)**len_num
        return (res == N)
        
