Write a Python function to compute s the sum of the digits of the number 2 to the power 20.


Topic: Write a Python function to compute s the sum of the digits of the number 2 to the power 20.

Solution

def digits_sum():
	n = 2**20
	ans = sum(int(c) for c in str(n))
	return str(ans)



List all Python Programs