For this Question: Given a number N, you need to check whether the given number is Armstrong number or not.
<b>A number is said to Armstrong if it is equal to sum of cube of its digits. </b>User task:
Since this is a functional problem you don't have to worry about the input. You just have to complete the function <b>isArmstrong()</b> which contains N as a parameter.

Constraints:
1 <= N <= 10^4You need to return "True" if the given number is an Armstrong number otherwise "False"Sample Input:
1

Sample Output:
true

Explanation:
1<sup>3</sup> = 1

Sample Input:
147

Sample Output:
false

Explanation:
1<sup>3</sup>  + 4<sup>3</sup>  + 7<sup>3</sup> != 147, I have written this Solution Code: def isArmstrong(N):
    w=N
    ans=0
    while w>0:
        x=w%10
        ans=ans+x**3
        w=int(w//10)
    res=ans==N
    return res
, In this Programming Language: Python, Now tell me if this Code is compilable or not?