Answer
Here is a simple program to compute the Sumtotal=0for k in range(2,12): # running a loop from 2 to 11# calculate the value of 2^(k+1) – 2^k total+=2**(k+1) – 2**k# print the total at the endprint(total)
Answer : 4092
Let me know in case you have any questions orproblem.
total0 for k
OR
OR