You are viewing a single comment's thread. Return to all comments →
def counterGame(n): # Write your code here res=1 S=bin(n)[2:] s=S.rstrip('0') a=len(S)-len(s) for k in s: res^=int(k) x=res^(a%2) return "Louise" if x==1 else "Richard"
Seems like cookies are disabled on this browser, please enable them to open this website
Counter game
You are viewing a single comment's thread. Return to all comments →