For this Question: Chef is playing with a number N. If the total number of set bits in N is even then Chef is happy. Determine whether Chef is happy or not.first line contain a single integer N.if the total number of set bits in N is even print "Yes" otherwise print "No"Sample Input 1:
7

Sample Output 1:
NO

Sample Input 2:
24

Sample Output 1:
Yes, I have written this Solution Code: n=int(input())
if (sum(list(map(int,list(bin(n)[2:]))))%2==0):
    print('Yes')
else:
    print('No'), In this Programming Language: Python, Now tell me if this Code is compilable or not?