Source code available on GitHub.
Easy. Define a quick digits function to return a tuple of the digits of `N`:
def digits(N): return tuple(int(i) for i in str(N))
Now just sum the digits of . Done.
def digits(N): return tuple(int(i) for i in str(N)) print(sum(digits(2**1000)))